<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
You can report it as a bug. It is a MacOS only issue because b1
value is the same as in Scilab 4.1 under Linux and Windows.<br>
<br>
Regards.<br>
<br>
<div class="moz-cite-prefix">Le 10/10/12 13:01, Arvid Rosén a
écrit :<br>
</div>
<blockquote
cite="mid:590182E9-B57A-4794-8C08-8394D44E27E2@softube.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<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 moz-do-not-send="true"
href="mailto:arvid@softube.com">arvid@softube.com</a><br>
URL: <a moz-do-not-send="true"
href="http://www.softube.com/">www.softube.com</a></div>
</span></div>
</span></span>
</div>
<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dev@lists.scilab.org">dev@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/dev">http://lists.scilab.org/mailman/listinfo/dev</a>
</pre>
</blockquote>
<br>
</body>
</html>