Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 2287 by gandreol...@gmail.com: factorization of rationals
http://code.google.com/p/sympy/issues/detail?id=2287
I was trying to integrate the following expression:
Integral(simplify(sqrt(2+t**(-2)+t**2),t).doit()
but it failed because the expression was not correctly simplified. The
integrand is simplified in this way:
simplify(sqrt(2+t**(-2)+t**2)
_______________
/ 2 4
\/ 1 + 2*t + t
------------------
|t|
but the numerator is not factorized. If I do factor(that expression without
the radical) I get
1 2
2 + -- + t
2
t
and I'm getting this because the expression isn't a polinomial, but it can
be simplified if I factor the numerator and denominator separately:
v = together(2+t**(-2)+t**2)
sqrt(factor(numer(v))/denom(v))
2
1 + t
------
t
Declaring t as real and positive and assuming t positive. And, after that
the integral is computed correctly and returns
2
t
log(t) + --
2
as expected. Simplify() should do all these for me.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.