Comment #1 on issue 1382 by zorg724: Documentation Error in "Finding all
roots of a polynomial"
http://code.google.com/p/sympy/issues/detail?id=1382
>>> import mpmath
>>> mpmath.__version__
'0.10'
>> help(mpmath.polyroots)
Help on function polyroots in module mpmath.calculus:
polyroots(coeffs, maxsteps=50, cleanup=True, extraprec=10, error=False)
Numerically locate all (complex) roots of a polynomial using the
Durand-Kerner method.
...
These are the roots of x^3 - x^2 - 14*x + 24 and 4x^2 + 3x + 2:
>>> nprint(polyroots([1,-1,-14,24]), 4)
[-4.0, 2.0, 3.0]
>>> nprint(polyroots([4,3,2], error=True))
([(-0.375 - 0.599479j), (-0.375 + 0.599479j)], 2.22045e-16)
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---