Bode Plot ** Circuit Description ** * input signal Vin 1 0 AC 1V * VCVS with transfer function: * 10s * T(s) = --------------------------- * ( 1+s/10^2 ) ( 1 + s/10^5 ) * * E1 2 0 Laplace {V(1)} = {(10*s) / ( (1+s/1e2) * (1+s/1e5) )} * * ngspice substitution (note: num_coeff and den_coeff can only take * non-factorized polynomials as arguments) * AE1 1 2 filter1 .model filter1 s_xfer(gain=10 + num_coeff=[1 0] + den_coeff=[{1/100000000} {1001/100000} 1] + int_ic=[0 0]) R1 1 0 1Ohm R2 2 0 1Ohm ** Analysis Requests ** .AC DEC 10 1e-2 1e8 ** Output Requests ** .PLOT AC VdB(2) ph(V(2)) .probe .end