Re: [Scilab-users] Unexpected result using horner

2022-07-25 Thread Samuel Gougeon
Le 25/07/2022 à 02:44, Federico Miyara a écrit : Samuel, Sorry, but nothing is clear to me about your statements: 1) what shows you that iir() is correct while the analpf + horner way is not? There are several reasons: a) The result of using iir() is consistent with the expected

Re: [Scilab-users] Unexpected result using horner

2022-07-24 Thread Federico Miyara
Samuel, Sorry, but nothing is clear to me about your statements: 1) what shows you that iir() is correct while the analpf + horner way is not? There are several reasons: a) The result of using iir() is consistent with the expected frequency response, since it is equal to the analog filter

Re: [Scilab-users] Unexpected result using horner

2022-07-24 Thread Samuel Gougeon
Le 24/07/2022 à 13:34, Samuel Gougeon a écrit : Sorry, but nothing is clear to me about your statements: 1) what shows you that iir() is correct while the analpf + horner way is not? 2) With the analpf + horner method, assuming that it is not correct, what shows you that horner is not

Re: [Scilab-users] Unexpected result using horner

2022-07-24 Thread Samuel Gougeon
Hello Federico, Le 20/07/2022 à 22:47, Federico Miyara a écrit : Dear All, I have problems with this script: Fs = 44100; fo = 500; B = 2^(1/6)-2^(-1/6); // Low-pass Butterworth hLPs = analpf(3,"butt",[],1); // Band-pass Butterworth centered at fo hBPs = horner(hLPs, (2*%pi*fo/%s

[Scilab-users] Unexpected result using horner

2022-07-20 Thread Federico Miyara
Dear All, I have problems with this script: Fs = 44100; fo = 500; B = 2^(1/6)-2^(-1/6); // Low-pass Butterworth hLPs = analpf(3,"butt",[],1); // Band-pass Butterworth centered at fo hBPs = horner(hLPs, (2*%pi*fo/%s + %s/(2*%pi*fo))/B) // Apply bilinear transform hBPz =