Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3970 by [email protected]: A bug on the degree function
http://code.google.com/p/sympy/issues/detail?id=3970
The function raises an exception on constants while it should answer 0 (and
even -oo on Zero in input)
degree(sympify(1),gen=x)
---------------------------------------------------------------------------
ComputationFailed Traceback (most recent call last)
/home/boris/programmation/pythondir/btableau/<ipython-input-22-491e4a8932f2>
in
<module>()
----> 1 degree(sympify(1),gen=x)
/usr/local/lib/python3.2/dist-packages/sympy-0.7.2-py3.2.egg/sympy/polys/polytools.py
in
degree(f, *gens, **args)
3910 F, opt = poly_from_expr(f, *gens, **args)
3911 except PolificationFailed as exc:
-> 3912 raise ComputationFailed('degree', 1, exc)
3913
3914 return Integer(F.degree(opt.gen))
ComputationFailed: degree(1) failed without generators
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues.
For more options, visit https://groups.google.com/groups/opt_out.