Issue 1182: global variable 'cubic' undefined in sympy/polys/rootfinding.py
http://code.google.com/p/sympy/issues/detail?id=1182
New issue report by nicolas.pourcelot:
"../sympy/polys/rootfinding.py", line 73, in roots_quartic
r = cubic(1, p, q, r)
NameError: global name 'cubic' is not defin
Issue 1182: global variable 'cubic' undefined in sympy/polys/rootfinding.py
http://code.google.com/p/sympy/issues/detail?id=1182
Comment #1 by nicolas.pourcelot:
Sorry, it doesn't work since roots_cubic expects a polynom as argument.
--
You received this message because you are listed in the
Issue 1182: global variable 'cubic' undefined in sympy/polys/rootfinding.py
http://code.google.com/p/sympy/issues/detail?id=1182
Comment #2 by nicolas.pourcelot:
This works, but is quite inelegant:
x = sympify("x")
r = roots_cubic((x**3+ p*x**2+ q*x+ r).as_poly())
Instead, roots_cubic a
Issue 1182: global variable 'cubic' undefined in sympy/polys/rootfinding.py
http://code.google.com/p/sympy/issues/detail?id=1182
Comment #3 by ondrej.certik:
Thanks for the bug report. Seems like some untested code.
Could you please post here the original command that fails?
Issue attribute up
Issue 1182: global variable 'cubic' undefined in sympy/polys/rootfinding.py
http://code.google.com/p/sympy/issues/detail?id=1182
Comment #4 by goriccardo:
Reported also in Issue 1158
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you st
Issue 1182: global variable 'cubic' undefined in sympy/polys/rootfinding.py
http://code.google.com/p/sympy/issues/detail?id=1182
Comment #6 by nicolas.pourcelot:
For example:
>>> import sympy
>>> sympy.var("x")
>>> p=(30.0 + 25.0*x**2 + 11.0*x**4 + 5.0*x**6 + x**8).as_poly()
>>> sympy.rootfinding
Issue 1182: global variable 'cubic' undefined in sympy/polys/rootfinding.py
http://code.google.com/p/sympy/issues/detail?id=1182
Comment #5 by nicolas.pourcelot:
For example:
>>> import sympy
>>> sympy.var("x")
>>> p=(30.0 + 25.0*x**2 + 11.0*x**4 + 5.0*x**6 + x**8).as_poly()
>>> sympy.rootfinding
Updates:
Status: Fixed
Comment #7 on issue 1182 by mattpap: global variable 'cubic' undefined in
sympy/polys/rootfinding.py
http://code.google.com/p/sympy/issues/detail?id=1182
This issue was fixed long ago. Moreover, support for Real arguments was
added in:
http://git.sympy.or