<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi!</div><div>I am having problems with the macro eqiir in scilab 5.4 on MacOS. I have traced it down to the call to syredi, which is a fortran function. When run the example from the help file I get different results from scilab 5.4 and scilab 4.</div><div><br></div><div><br></div><div>// Scilab 5.4</div>[fact,b2,b1,b0,c1,c0,zzeros,zpoles]=syredi(1,4,[2*%pi/10,4*%pi/10,0,0],0.02,0.001);<div>disp(b1)</div><div>--> [2 2 1]</div><div><br></div><div>// Scilab 4.1</div><div>[fact,b2,b1,b0,c1,c0,zzeros,zpoles]=syredi(1,4,[2*%pi/10,4*%pi/10,0,0],0.02,0.001);<div>disp(b1)</div></div><div>--> [ - 0.5354229    0.3489640    1.  ]</div><div><br></div><div>The poles end up correct, but the zeros are rounded or casted to int or something like that.</div><div><br></div><div>Does anyone know anything about this? Should I report it as a bug?</div><div><br></div><div>This turns out to break a lot of code for me, but in a very non-obvious way.</div><div><br></div><div>Best regards,</div><div>Arvid<br><div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Arvid Rosén</div><div><br></div><div>Softube AB</div></div></span>S:t Larsgatan 10c<br>SE-582 24 Linköping<br>Sweden<br>Mobile: (+46) 73 25 123 47<br>Office: (+46) 13 21 16 23<br>Fax: (+46) 13 10 00 23<br>Mail: <a href="mailto:arvid@softube.com">arvid@softube.com</a><br>URL: <a href="http://www.softube.com/">www.softube.com</a></div></span></div></span></span>
</div>
<br></div></div></body></html>