<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
----- Message d'origine ----- <br>
De : <a class="moz-txt-link-abbreviated" href="mailto:leszek.luchowski@iitis.gliwice.pl">leszek.luchowski@iitis.gliwice.pl</a> <br>
Date : 15/03/2010 14:08:
<blockquote
 cite="mid:3618.212.106.181.46.1268658507.squirrel@mail.iitis.gliwice.pl"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">sx=spec(A)
if real(sx(1))>0.0
"Positive"
end


there are some spurious imaginary parts, likely.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Thank you a lot for the answer. It works, but something strange is
happening here: when the value of sx(1) is displayed, there is no mention
of any imaginary part. And when I type


imag(sx(1))

I get zero as the reply.

I also tried

1/imag(sx(1))

then the reply is

              !--error 27
division by zero...

Any ideas?
  </pre>
</blockquote>
-->isreal(sx)<br>
 ans  = <br>
  F  <br>
<br>
-->format("e") <br>
-->imag(sx)<br>
 ans  =<br>
 <br>
    0.000D+00  <br>
    0.000D+00  <br>
    0.000D+00  <br>
    0.000D+00  <br>
<br>
Therefore, you may consider that isreal() is bugged, and then submit a
bug report:<br>
<a class="moz-txt-link-freetext" href="http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20%20software">http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20%20software</a><br>
<br>
Regards<br>
Samuel<br>
<br>
</body>
</html>