Updates:
Status: Fixed
Comment #14 on issue 604 by asmeurer: write tests for p = x**3+2*x**2+8; r
= roots(p, x);
http://code.google.com/p/sympy/issues/detail?id=604
See pull request #521, which was pushed in. This can be tested symbolically
using simplify().
--
You received this
Comment #13 on issue 604 by smi...@gmail.com: write tests for p =
x**3+2*x**2+8; r = roots(p, x);
http://code.google.com/p/sympy/issues/detail?id=604
You can even just do
[p.subs(x, ri).n(chop=True) for ri in r]
[0, 0, 0]
--
You received this message because you are subscribed to
Comment #12 on issue 604 by smi...@gmail.com: write tests for p =
x**3+2*x**2+8; r = roots(p, x);
http://code.google.com/p/sympy/issues/detail?id=604
Perhaps this issue should just be closed. Looking at the git log I see that
the whole test was removed in the revamp of poly (see
Comment #10 on issue 604 by idichekop: write tests for p = x**3+2*x**2+8; r
= roots(p, x);
http://code.google.com/p/sympy/issues/detail?id=604
Hello all,
I wanted to shoot this issue here, but when just trying it out I became the
following
output:
===
In [67]: p = x**3+2*x**2+8
In
Comment #11 on issue 604 by asmeurer: write tests for p = x**3+2*x**2+8; r
= roots(p, x);
http://code.google.com/p/sympy/issues/detail?id=604
roots() returns a dictionary (notice type(r)) of root:multiplicity terms.
For example:
In [5]: p = (x - 12)*(x - 13)**2*(x - 42)**2
In [6]: