Polynomial roots
Inderpreet Arora
inderpreet.arora at yahoo.com
Sat Jan 10 18:33:49 CET 2009
Hello,
I want to compare roots of a polynomial with a number. But it gives error. Consider a simple e.g.,
a = [2 3];
s = %s;
x = s^2 - 5*s + 6;
r = roots(x); r1 = [roots(x)]';
t1 = type(a);
t2 = type(r);
a > 2
r > 2
It does the comparison for a (done for verification) but gives the following error for r and r1, though their types are same,
Undefined operation for the given operands
check or define function %s_2_s for overloading
I tried in versions 4.1 and 4.1.2. Please guide. Thanks.
Sincerely,
Inderpreet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20090110/7ef6bb1f/attachment.htm>
More information about the users
mailing list