[scilab-Users] mismatch in calculation with scilab version 5.3.3 on ubuntu 12.04
Samuel Gougeon
sgougeon at free.fr
Tue May 8 22:58:06 CEST 2012
Hello,
This result is correct. The following thread in Bugzilla may
interest you: http://bugzilla.scilab.org/show_bug.cgi?id=4191#c2
Here,
-->%eps^(1/4)
ans =
0.0001221
is of the order of shifts reported in your message.
Regards
Samuel Gougeon
Le 08/05/2012 20:26, Manjusha Joshi a écrit :
> 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/
>
>
More information about the users
mailing list