<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Not sure if it helps, but here's some more information about my setup:<br><br>-->[version, opts] = getversion()<br> opts  =<br> <br>!ICC  x64  tk  modelicac  atlas  release  Jul 20 2011  11:01:29  !<br> version  =<br> <br> scilab-5.3.3 <br><br>Stephen<br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: sahallacy@hotmail.com<br>To: users@lists.scilab.org<br>Date: Tue, 1 May 2012 17:19:31 -0500<br>Subject: RE: [scilab-Users] Strange poly() results<br><br>

<style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

--></style>
<div dir="ltr">
Hello,<br><br>I'm getting the same results as Kevin.  I am running scilab-5.3.3_x64 on windows 7.<br><br>-->clean(coeff(poly(roots(poly([1 1 1],"x","c")),"x","r")))<br> ans  =<br> <br>    1. + 0.4330127i    1.    1.  <br><br>Stephen<br><br><div><div id="ecxSkyDrivePlaceholder"></div>> Date: Tue, 1 May 2012 21:24:48 +0200<br>> From: serge.steer@inria.fr<br>> To: users@lists.scilab.org<br>> Subject: Re: [scilab-Users] Strange poly() results<br>> <br>> PLease can you provide more information (Operating system, Scilab version,...)<br>> <br>> On my Linux box with Scilab-5.3.3  I got<br>> -->clean(coeff(poly(roots(poly([1 1 1],"x","c")),"x","r"))) <br>>  ans  =<br>>  <br>>     1.    1.    1.  <br>>  Serge Steer<br>> INRIA<br>> <br>> ----- Mail original -----<br>> > De: "Kevin McCoy" <kevinm@aavatech.com><br>> > À: users@lists.scilab.org<br>> > Envoyé: Lundi 30 Avril 2012 16:39:24<br>> > Objet: [scilab-Users] Strange poly() results<br>> > When I run the following:<br>> > <br>> > clean(coeff(poly(roots(poly([1 1 1],"x","c")),"x","r"))) I get ...<br>> > <br>> > ans =<br>> > <br>> > 1. + 0.4330127i 1. 1.<br>> > <br>> > But I'm expecting ...<br>> > <br>> > ans =<br>> > <br>> > 1. 1. 1.<br>> > <br>> > Am I doing something wrong? The documentation says that roots() and<br>> > poly()<br>> > are inverse functions, that is, if I construct a polynomial (using<br>> > poly(pr,"x","r"), where pr are the roots of a polynomial), then I<br>> > should get<br>> > back that original polynomial.<br>> > <br>> > Here are some other outputs:<br>> > <br>> > clean(coeff(poly(roots(poly([1 1],"x","c")),"x","r"))) --> 1. 1.<br>> > [correct]<br>> > <br>> > clean(coeff(poly(roots(poly([1 0 1],"x","c")),"x","r"))) --> 1. 0. 1.<br>> > [correct]<br>> > <br>> > clean(coeff(poly(roots(poly([1 0 0 1],"x","c")),"x","r"))) --> 0.625 +<br>> > 0.2165064i 0.4330127i 0 1. [incorrect]<br>> > <br>> > clean(coeff(poly(roots(poly([1 1 2],"x","c")),"x","r"))) --> 0.5 +<br>> > 0.1653595i 0.5 1. [incorrect]<br>> > <br>> > What am I doing wrong?<br>> > <br>> > Thanks!<br>> > <br>> > <br>> > <br>> > <br>> > <br>> > --<br>> > View this message in context:<br>> > http://mailinglists.scilab.org/Strange-poly-results-tp3950884.html<br>> > Sent from the Scilab users - Mailing Lists Archives mailing list<br>> > archive at Nabble.com.<br>> > <br>> > --<br>> > To unsubscribe from this mailing-list, please send an empty mail to<br>> > users-unsubscribe@lists.scilab.org<br>> > To check the archives of this mailing list, see<br>> > http://mailinglists.scilab.org/<br>> <br>> --<br>> To unsubscribe from this mailing-list, please send an empty mail to<br>> users-unsubscribe@lists.scilab.org<br>> To check the archives of this mailing list, see<br>> http://mailinglists.scilab.org/<br>> <br></div>                                      </div></div>                                        </div></body>
</html>