Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 1308 by plaes800: simplify gives error on expressions containing
exp()
http://code.google.com/p/sympy/issues/detail?id=1308
In [12]: simplify(exp(-Rational(1)/Rational(2)) - exp(2))
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/home/plaes/code/sympy/<ipython console> in <module>()
/home/plaes/code/sympy/sympy/simplify/simplify.pyc in simplify(expr)
1018 """
1019 expr = Poly.cancel(powsimp(expr))
-> 1020 return together(expr.expand())
1021
1022 def nsimplify(expr, constants=[], tolerance=None, full=False):
/home/plaes/code/sympy/sympy/simplify/simplify.pyc in together(expr, deep)
344 return expr
345
--> 346 return _together(separate(expr))
347
348 #apart -> partial fractions decomposition (will be here :)
/home/plaes/code/sympy/sympy/simplify/simplify.pyc in _together(expr)
263 coeff = S.One
264 elif term.func is C.exp:
--> 265 if term[0].is_Rational:
266 term, expo = C.E, term[0]
267 elif term[0].is_Mul:
TypeError: 'exp' object is unindexable
--
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
-~----------~----~----~----~------~----~------~--~---