mismatch in calculation with scilab version 5.3.3 on ubuntu 12.04

Manjusha Joshi manjusha.joshi at gmail.com
Tue May 8 20:26:29 CEST 2012


Hello,

Here is the code which is showing unexpected  results.
I started with vector v.

-->v=[1,1,1,1]
 v  =

    1.    1.    1.    1.

//Defined poly with roots as v
-->p=poly(v,'s')
 p  =

               2    3   4
    1 - 4s + 6s - 4s + s

-->roots(p)
 ans  =

    1.0001886
    1.0000000 + 0.0001886i
    1.0000000 - 0.0001886i
    0.9998114
 //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.

Can any one put light on how to interpret it correctly or explain  any
other reason behind this?

Regards,

-- 
Manjusha S. Joshi
Pune, India
blog:http://manjushajoshi.wordpress.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20120508/c8f91d93/attachment.htm>


More information about the users mailing list