Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 4059 by [email protected]: integral simplify() raises
http://code.google.com/p/sympy/issues/detail?id=4059
x, y = symbols('x y')
I = integrate(log(abs(x**2 - y**2)), x)
I.simplify()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-31-012ef9500f43> in <module>()
----> 1 I.simplify()
/home/pape/sympy/sympy/core/expr.pyc in simplify(self, ratio, measure)
2919 from sympy.core.function import count_ops
2920 measure = measure or count_ops
-> 2921 return simplify(self, ratio, measure)
2922
2923 def nsimplify(self, constants=[], tolerance=None, full=False):
/home/pape/sympy/sympy/simplify/simplify.pyc in simplify(expr, ratio,
measure, fu)
3674 expr = bottom_up(expr, lambda w: w.normal())
3675 expr = Mul(*powsimp(expr).as_content_primitive())
-> 3676 _e = cancel(expr)
3677 expr1 = shorter(_e, _mexpand(_e).cancel()) # issue 3730
3678 expr2 = shorter(together(expr, deep=True), together(expr1,
deep=True))
/home/pape/sympy/sympy/polys/polytools.pyc in cancel(f, *gens, **args)
6068 continue
6069 try:
-> 6070 reps.append((e, cancel(e)))
6071 pot.skip() # this was handled successfully
6072 except NotImplementedError:
/home/pape/sympy/sympy/polys/polytools.pyc in cancel(f, *gens, **args)
6035 return f
6036 f = factor_terms(f, radical=True)
-> 6037 p, q = f.as_numer_denom()
6038
6039 elif len(f) == 2:
AttributeError: 'Or' object has no attribute 'as_numer_denom'
--
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.