<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hello Federico,</p>
<p>simp_mode is a function not a variable,<br /> use :<br /> simp_mode(%f);<br /><br /> Regards,<br /> Antoine</p>
<div class="moz-cite-prefix">Le 27/08/2020 à 09:50, Federico Miyara a écrit :</div>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px"><br /><span style="font-family: 'Courier New';">Dear All,<br /><br /> I need to have examples of rationals with very close poles and zeros, but the simp engine simplifies them. This is awkward, since the simp documentation says there is no threshold, so other than identical poles and zeros shouldn't be simplified. Actually this is the case with complicated rationals created from electrical network analysis of some filters, but not with the more transparent example below.<br /><br /> My second attempt to reproduce the problem in my simple numeric example has been to use the command simp_mode to disable any simplification. But it doesn't work as expected--and described. For instance</span><span style="color: #000000;"></span><span style="color: #000000;">, the code<br /><br /> N</span> <span style="color: #5c5c5c;">=</span> <span style="color: #32b9b9;">poly</span><span style="color: #4a55db;">(</span><span style="color: #4a55db;">[</span><span style="color: #bc8f8f;">1</span> <span style="color: #bc8f8f;">2</span> <span style="color: #bc8f8f;">3</span> <span style="color: #bc8f8f;">3.000009</span> <span style="color: #bc8f8f;">5</span><span style="color: #4a55db;">]</span><span style="color: #000000;">,</span> <span style="color: #bc8f8f;">"</span><span style="color: #bc8f8f;">s</span><span style="color: #bc8f8f;">"</span><span style="color: #4a55db;">)</span><span style="color: #000000;"><br /> D</span> <span style="color: #5c5c5c;">=</span> <span style="color: #32b9b9;">poly</span><span style="color: #4a55db;">(</span><span style="color: #4a55db;">[</span><span style="color: #bc8f8f;">1.0000001</span> <span style="color: #bc8f8f;">3.0000003</span> <span style="color: #bc8f8f;">4</span> <span style="color: #bc8f8f;">6</span><span style="color: #4a55db;">]</span><span style="color: #000000;">,</span> <span style="color: #bc8f8f;">"</span><span style="color: #bc8f8f;">s</span><span style="color: #bc8f8f;">"</span><span style="color: #4a55db;">)</span><span style="color: #32b9b9;"><br /> simp_mode</span> <span style="color: #bc8f8f;">=</span> <span style="color: #bc8f8f;">%f</span><span style="color: #000000;">;</span><span style="color: #000000;"><br /> H</span> <span style="color: #5c5c5c;">=</span> <span style="color: #000000;">N</span><span style="color: #5c5c5c;">/</span><span style="color: #000000;">D</span><span style="color: #000000;"></span><br /><br /> yields these results:<br /><br /> --> N<br /> N = <br /> -90.00027 +213.00055s -184.00037s² +74.000099s³ -14.000009s⁴ +s⁵<br /> --> D<br /> D = <br /> 72.000014 -126.00002s +67.000005s² -14s³ +s⁴<br /> --> H<br /> H = <br /> <br /> -30.000093 +31.000066s -10.00001s² +s³ <br /> -------------------------------------- <br /> 24.000006 -10.000001s +s² <br /><br /> As can be seen, even if I disabled automatic simplification, the result is not the raw quotient N/D but a "simplified" version.<br /><br /> Any idea? Is it a bug?<br /><br /> Regards,<br /><br /> Federico Miyara <br /><span style="color: #000000;"></span>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
<tbody>
<tr>
<td style="width: 55px; padding-top: 18px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient"><img style="width: 46px; height: 29px;" src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" /></a></td>
<td style="width: 470px; padding-top: 17px; color: #41424e; font-size: 13px; line-height: 18px;">Libre de virus. <a style="color: #4453ea;" href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient">www.avast.com</a></td>
</tr>
</tbody>
</table>
</div>
<br /><fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
</body></html>