[scilab-Users] I think I have found a bug - an "incomparable" number.

Samuel Gougeon Samuel.Gougeon at univ-lemans.fr
Mon Mar 15 14:30:35 CET 2010


----- Message d'origine -----
De : leszek.luchowski at iitis.gliwice.pl
Date : 15/03/2010 14:08:
>> sx=spec(A)
>> if real(sx(1))>0.0
>> "Positive"
>> end
>>
>>
>> there are some spurious imaginary parts, likely.
>>     
>
> 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?
>   
-->isreal(sx)
 ans  = 
  F 

-->format("e") 
-->imag(sx)
 ans  =
 
    0.000D+00 
    0.000D+00 
    0.000D+00 
    0.000D+00 

Therefore, you may consider that isreal() is bugged, and then submit a 
bug report:
http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20%20software

Regards
Samuel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20100315/d95eb722/attachment.htm>


More information about the users mailing list