Status: Accepted
Owner: [email protected]
Labels: Type-Defect Priority-Medium EasyToFix
New issue 2758 by [email protected]: sqrtdenest needs to check if a match
pattern was obtained
http://code.google.com/p/sympy/issues/detail?id=2758
d
sqrt(1/(4*(sqrt(3)/2 + 1)**2) + 1)
sqrtdenest(d)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "sympy\simplify\sqrtdenest.py", line 20, in sqrtdenest
return denester([expr])[0]
File "sympy\simplify\sqrtdenest.py", line 54, in denester
if r in v: #Since if b=0, r is not defined
TypeError: argument of type 'NoneType' is not iterable
That should be 'if v and r in v', I think. I can leave this as an 'easy to
fix' for the coding competition.
--
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.