I think I have found a bug - an "incomparable" number.
leszek.luchowski at iitis.gliwice.pl
leszek.luchowski at iitis.gliwice.pl
Mon Mar 15 13:51:56 CET 2010
Hi. I ran into a strange problem in Scilab. My program crashed, and I
couldn't find an error in it. Apparently, there isn't any! I managed to
isolate the problem by cutting off most of my code and just leaving this:
// ===================================
clear;
clc;
A=[1 0 0 0;
0 0 3 0;
0 2 0 0;
0 0 0 1];
sx=spec(A)
if sx(1)>0.0 // <--- This is where it crashes!
"Positive"
end
// ===================================
The value of sx(1) is an unimpressive real number, about 2.45. Why can't I
compare it to zero?
Thanks in advance for any enlightment,
Leszek.
As this is my first post in this list i wish to say hello to everybody.
More information about the users
mailing list