I'm trying to find the -3 dB frequency of a filter in Mathematica. Yet, my code doesn't seem to work as it produces imaginary values for the frequency.
Tfilter=(9.36*^6 + 44226.*s + 9.477*s^2)/(2.35521*^9 + 495801.*s + 9.477*s^2)
Eqn1 = 20*Log[10, Abs[Tfilter /. s -> I*2*Pi*f]] == -3
Solve[Eqn1, f]
What am I doing wrong? Is there any additional command I shall give to Mathematica?
FindRoot[Eqn1,{f,1}]
instantly returns{f->7530.29}
Please check that VERY carefully to make certain that is correct. PerhapsPlot[Log[10,Abs[Tfilter/.s->I*2*Pi*f]]+3/20,{f,0,10^4}]
will give you some useful insight. $\endgroup$Solve[Eqn1 && f \[Element] Reals, f]
$\endgroup$