<html><body><span class="xfm_42813660"><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;" class="xfmc1">Dear Samuel!</span><br/></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;" class="xfmc1"><br/></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;" class="xfmc1">Many thanks!<br/></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;" class="xfmc1"><br/></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;" class="xfmc1">For me there is no problem to run SciLab as admin, use edit %s_i_s (i=1:4) and add<br/></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;" class="xfmc1"><br/></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;" class="xfmc1">else<br/></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;" class="xfmc1">    TF=%f<br/></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;" class="xfmc1"><br/></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;" class="xfmc1">or<br/></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;" class="xfmc1"><br/></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;" class="xfmc1">else<br/></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;" class="xfmc1">    error("Comparison of complex numbers is undefined")<br/></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;" class="xfmc1"><br/></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;" class="xfmc1">etc.<br/></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;" class="xfmc1"><br/></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;" class="xfmc1">The error is a good idea. It is more correct that in MatLab (comparing of the real part only). But %NAN is also possible, meaning that the operation can not provide any "logical number", 1 (%t) or 0 (%f).</span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;" class="xfmc1"><br/></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;" class="xfmc1">If <span style="font-family:Arial;font-size:10pt;line-height:12pt;">x<%i is false then </span></span><span style="font-size:10pt;line-height:12pt;font-family:Arial;"><span style="font-family:Arial;font-size:10pt;line-height:12pt;">x>=%i can also be false, such as x<%nan and x>=%nan. In this case, %f in "if" or "while" gives the same result but without changing of type of the comparing result from 4 to 1.</span></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;"><span style="font-family:Arial;font-size:10pt;line-height:12pt;"><br/></span></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;"><span style="font-family:Arial;font-size:10pt;line-height:12pt;">Nevertheless, %NAN is more correct </span></span><span style="font-size:10pt;line-height:12pt;font-family:Arial;"><span style="font-family:Arial;font-size:10pt;line-height:12pt;">(IMHO), especially</span></span><span style="font-size:10pt;line-height:12pt;font-family:Arial;"><span style="font-family:Arial;font-size:10pt;line-height:12pt;"> in boolean expressions outside the "if" of "while" conditions. It is possible to use:<br/></span></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;"><span style="font-family:Arial;font-size:10pt;line-height:12pt;"><br/></span></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;"><span style="font-family:Arial;font-size:10pt;line-height:12pt;">if a<b then<br/></span></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;"><span style="font-family:Arial;font-size:10pt;line-height:12pt;">elseif a>=b then<br/></span></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;"><span style="font-family:Arial;font-size:10pt;line-height:12pt;">else<br/></span></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;"><span style="font-family:Arial;font-size:10pt;line-height:12pt;">    //a or/and b is/are %nan or complex.<br/></span></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;"><span style="font-family:Arial;font-size:10pt;line-height:12pt;">end<br/></span></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;"><span style="font-family:Arial;font-size:10pt;line-height:12pt;"><br/></span></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;"><span style="font-family:Arial;font-size:10pt;line-height:12pt;">With best regards.<br/></span></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;"><span style="font-family:Arial;font-size:10pt;line-height:12pt;">Viktor.<br/></span></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;"><span style="font-family:Arial;font-size:10pt;line-height:12pt;"><br/></span></span></div><div><br/></div><div><i><span style="font-size:10pt;line-height:12pt;"><span style="font-family:Arial;">14 серпня 2017, 14:38:33, від "Samuel Gougeon" <</span><a href="mailto:sgougeon@free.fr" target="_blank" rel="noreferrer noopener"><span style="font-family:Arial;">sgougeon@free.fr</span></a><span style="font-family:Arial;">>:</span></span></i></div><div><br/></div><blockquote style="border-left:1px solid #cccccc;margin:0px 0px 0px 0.8ex;padding-left:1ex;"><span><span><span></span><span bgcolor="#FFFFFF"><div>Le 14/08/2017 à 12:14, Viktor
      Mileikovskyi a écrit :</div><blockquote type="cite"><span><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;">Dear Developers!</span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;"><br/></span></div><div><span style="font-size:10pt;line-height:12pt;font-family:Arial;">The bug </span><a href="http://bugzilla.scilab.org/show_bug.cgi?id=15184" rel="noreferrer noopener" target="_blank"><span style="font-family:Arial;font-size:10pt;line-height:12pt;">15184</span></a><span style="font-size:10pt;line-height:12pt;font-family:Arial;"><span style="font-family:Arial;font-size:10pt;line-height:12pt;">
              has been successfully fixed in 6.0 branch </span></span></div>

      </span></blockquote>

    At least, the crash no longer occurs.<br/>
    However, when we try to compare a complex to a real like with
    2<%i, an error should be yielded instead of returning %F.
    Otherwise, the complementary comparison 2>=%i could be
    interpreted as %T, what is definitely not the case.<br/>
    So: when such a comparison is done, we may test the existence of
    %s_1_s_custom() , that may be defined in an external way (%s_1_s()
    being already defined in Scilab).<br/>
     * If it exists: we call it<br/>
     * otherwise, we yield an error with a message inviting the user to
    define %s_1_s_custom()<br/><br/>
    I will propose a commit in this way, on the 6.0 branch.<br/><br/>
    Samuel<br/><br/></span></span><span><pre style="margin:5px 0;">_______________________________________________
dev mailing list
<a href="mailto:dev@lists.scilab.org" rel="noreferrer noopener" target="_blank">dev@lists.scilab.org</a>
<a href="http://lists.scilab.org/mailman/listinfo/dev" rel="noreferrer noopener" target="_blank">http://lists.scilab.org/mailman/listinfo/dev</a>

</pre>
</span></span></blockquote><div><br/></div><div><br/></div><div><div><span style="font-family:Arial;font-size:10pt;line-height:12pt;">--</span></div><div><span style="font-family:Arial;font-size:10pt;line-height:12pt;">E-Mail: v_mil@ukr.net</span></div><div><span style="font-family:Arial;font-size:10pt;line-height:12pt;">E-Mail: mileikovskyi@gmail.com</span></div><div><span style="font-family:Arial;font-size:10pt;line-height:12pt;">Skype: mileikovskyi</span></div><div><span style="font-family:Arial;font-size:10pt;line-height:12pt;">Mob: +38-044-2284247</span></div><div><span style="font-family:Arial;font-size:10pt;line-height:12pt;">Mob: +38-094-8284247</span></div><div><br/></div></div></span></body></html>