<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thanks. Now, I could figure out that it is stored with an (eventually zero) imaginary part (Help: Description of isreal function).<br><br>-->isreal(r)<br> ans  =<br><br>  F  <br><br>-->isreal(a)<br> ans  =<br><br>  T <br><br>Sincerely,<br>Inderpreet<br><br><br>--- On <b>Sat, 1/10/09, François Vogel <i><fvogelnew1@free.fr></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: François Vogel <fvogelnew1@free.fr><br>Subject: Re: [scilab-Users] Polynomial roots<br>To: users@lists.scilab.org<br>Date: Saturday, January 10, 2009, 6:05 PM<br><br><pre>-->real(r) > 2<br> ans  =<br><br>  F<br>  T<br><br>Francois<br><br><br>Inderpreet Arora said on 10/01/2009 18:33:<br>> Hello,<br>> I want to compare roots of a polynomial with a number. But
 it gives error.<br>Consider a simple e.g.,<br>> <br>> a = [2 3];<br>> s = %s;<br>> x = s^2 - 5*s + 6;<br>> r = roots(x); r1 = [roots(x)]';<br>> t1 = type(a);<br>> t2 = type(r);<br>> a > 2<br>> r > 2<br>> <br>> It does the comparison for a (done for verification) but gives the<br>following error for r and r1, though their types are same,<br>> <br>> Undefined operation for the given operands<br>> check or define function %s_2_s for overloading<br>> <br>> I tried in versions 4.1 and 4.1.2. Please guide. Thanks.<br>> <br>> Sincerely,<br>> Inderpreet<br></pre></blockquote></td></tr></table><br>