07-19-2013 04:23 AM
I want to build a Butterworth filter with the formula node. what should I do?
Let's do it step by step and if you can correct me.
I saw the formula for the Butterworth is:
H(jw)=1/sqrt([1+(f/fc)^2n])
now I know that the cutoff freq. is fc=1/(2*pi*R*C) where R & C are variable and choosen by the user (this is what the teacher asked).
So if i write in the formula node this statments:
Tau=R*C;
Fc=1/(2*pi*Tau);
FdT=abs(1/sqrt([1+(f/Fc)**2*n]));
i got error. why?
Solved! Go to Solution.
07-19-2013 07:07 AM
I tried to do some changes but it seems that doesn't work properly.
Can you give a look and help me plz?
Ty
07-19-2013 07:48 AM - edited 07-19-2013 07:49 AM
You were close. But your little loop inside the formula should look like this. Notice the perithesis around the 2*n. You were only squaring. You should raise to a power of 2*n. I added an input for the number of poles.
for ( f=0; f<1000;f++) { H[f]=1/sqrt(1+(f/Fc)**(2*n)); }
Also, there's an Absolute Value in the Numeric palette. Use that instead of the square and square root.
07-19-2013 07:52 AM
thank you so much i was going crazy!!!