Hello,<br><br>Here is the code which is showing unexpected results.<br>I started with vector v.<br><br>-->v=[1,1,1,1]<br> v =<br> <br> 1. 1. 1. 1. <br> <br>//Defined poly with roots as v<br>-->p=poly(v,'s')<br>
p =<br> <br> 2 3 4 <br> 1 - 4s + 6s - 4s + s <br> <br>-->roots(p)<br> ans =<br> <br> 1.0001886 <br> 1.0000000 + 0.0001886i <br> 1.0000000 - 0.0001886i <br> 0.9998114 <br>
//roots of polynomial should be all 1, how ever, answer is different with scilab 5.3.3 on ubuntu 12.04 computers. At least 6 machines giving this different answer. On the other hand scilab 5.3. giving correct answer.<br>
<br>Can any one put light on how to interpret it correctly or explain any other reason behind this?<br><br>Regards,<br clear="all"><br>-- <br>Manjusha S. Joshi <br>Pune, India<br>blog:<a href="http://manjushajoshi.wordpress.com/" target="_blank">http://manjushajoshi.wordpress.com/</a><br>
<br> <br>