Comment #16 on issue 1393 by ness...@googlemail.com: Implement heuristics
for integrating common algebraic functions
http://code.google.com/p/sympy/issues/detail?id=1393
This kind of works in gsoc-3:
In [54]: integrate(x**2 * sqrt(5-x**2), x, meijerg=True)
Out[54]:
⎧ ⎛ ⎽⎽⎽
⎞
⎪ ⎜╲╱ 5
⋅x⎟
⎪ ⎽⎽⎽ 5 ⎽⎽⎽ 3 ⎽⎽⎽
25⋅ⅈ⋅acosh⎜───────⎟ │ 2│
⎪ ╲╱ 5 ⋅ⅈ⋅x 3⋅╲╱ 5 ⋅ⅈ⋅x 5⋅╲╱ 5 ⋅ⅈ⋅x ⎝ 5
⎠ │x │
⎪ ──────────────── - ─────────────── + ─────────────── -
─────────────────── for 1 < ────
⎪ ⎽⎽⎽⎽⎽⎽⎽⎽ ⎽⎽⎽⎽⎽⎽⎽⎽ ⎽⎽⎽⎽⎽⎽⎽⎽
8 5
⎪ ╱ 2 ╱ 2 ╱ 2
⎪ ╱ x ╱ x ╱ x
⎪ 20⋅ ╱ ── - 1 8⋅ ╱ ── - 1 8⋅ ╱ ── - 1
⎪ ╲╱ 5 ╲╱ 5 ╲╱ 5
⎨
⎪ ⎛
⎽⎽⎽ ⎞
⎪ ⎜╲╱
5 ⋅x⎟
⎪ ⎽⎽⎽ 5 ⎽⎽⎽ 3 ⎽⎽⎽
25⋅asin⎜───────⎟
⎪ ╲╱ 5 ⋅x 3⋅╲╱ 5 ⋅x 5⋅╲╱ 5 ⋅x ⎝
5 ⎠
⎪- ────────────────── + ───────────────── - ───────────────── +
──────────────── otherwise
⎪ ⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽ ⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽ ⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽ 8
⎪ ╱ 2 ╱ 2 ╱ 2
⎪ ╱ x ╱ x ╱ x
⎪ 20⋅ ╱ - ── + 1 8⋅ ╱ - ── + 1 8⋅ ╱ - ── + 1
⎩ ╲╱ 5 ╲╱ 5 ╲╱ 5
Since this is rather messy, I refrain from seeing this NeedsReview worthy.
--
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.