Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Simplify

New issue 4043 by [email protected]: simplify giving an error: "AttributeError: 'And' object has no attribute 'as_numer_denom'"
http://code.google.com/p/sympy/issues/detail?id=4043

I've been extensively using SymPy in our structural modelling activities and this was the first time I see such error:

Traceback (most recent call last):
  File "k1_ijk.py", line 10, in <module>
    v = sympy.simplify(v)
  File "C:\clones\sympy\sympy\simplify\simplify.py", line 3676, in simplify
    _e = cancel(expr)
  File "C:\clones\sympy\sympy\polys\polytools.py", line 6060, in cancel
    nc = [cancel(i) for i in nc]
  File "C:\clones\sympy\sympy\polys\polytools.py", line 6060, in cancel
    nc = [cancel(i) for i in nc]
  File "C:\clones\sympy\sympy\polys\polytools.py", line 6060, in cancel
    nc = [cancel(i) for i in nc]
  File "C:\clones\sympy\sympy\polys\polytools.py", line 6060, in cancel
    nc = [cancel(i) for i in nc]
  File "C:\clones\sympy\sympy\polys\polytools.py", line 6060, in cancel
    nc = [cancel(i) for i in nc]
  File "C:\clones\sympy\sympy\polys\polytools.py", line 6070, in cancel
    reps.append((e, cancel(e)))
  File "C:\clones\sympy\sympy\polys\polytools.py", line 6037, in cancel
    p, q = f.as_numer_denom()
AttributeError: 'And' object has no attribute 'as_numer_denom'


I've added a Gist containing only the necessary to reproduce this error.

https://gist.github.com/saullocastro/6812663


--
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.

Reply via email to