Hi,
[...]
> No, that's actually wrong. What version of numpy are you using? With a recent
> SVN checkout of numpy, I get the correct answer:
>
> In [3]: roots([1,0,0])
> Out[3]: array([ 0., 0.])
In [17]: import sys, numpy
In [18]: sys.version
Out[18]: '2.5 (r25:51908, Sep 23 2006, 01:23:14) \
Schüle Daniel wrote:
> Hello NG,
>
> given this call to roots funtion from pylab
It's actually from numpy and numpy questions are best asked (and best answered!)
on numpy-discussion.
http://www.scipy.org/Mailing_Lists
> In [342]: roots([0,2,2])
> Out[342]: array([-1.])
>
> as far as I unders
Hello NG,
given this call to roots funtion from pylab
In [342]: roots([0,2,2])
Out[342]: array([-1.])
as far as I understand it [a0,a1,a2] stands for a0+a1*x+a2*x^2
in the above case it yields 2x^2+2x = 2x(1+x)
and the roots are 0 and -1
I am wondering why roots function gives me only the -1
se