Comment #4 on issue 1020 by [email protected]: integrate(sqrt(y**2 - x**2)/x, x) can't do it
http://code.google.com/p/sympy/issues/detail?id=1020

This works in gsoc-3, but the answer seems messy to me (not sure how nice it should be), so I leave this open.

In [85]: integrate(sqrt(y**2 - x**2)/x, x)
Out[85]:
⎧                                          2                 │ 2│
⎪         x                 ⎛y⎞           y                  │y │
⎪- ─────────────── - y⋅acosh⎜─⎟ + ─────────────────  for 1 < │──│
⎪        ⎽⎽⎽⎽⎽⎽⎽⎽⎽          ⎝x⎠           ⎽⎽⎽⎽⎽⎽⎽⎽⎽          │ 2│
⎪       ╱       2                        ╱       2           │x │
⎪      ╱       y                        ╱       y
⎪     ╱   -1 + ──                 x⋅   ╱   -1 + ──
⎪    ╱          2                     ╱          2
⎪  ╲╱          x                    ╲╱          x
⎨
⎪                                         2
⎪      ⅈ⋅x                 ⎛y⎞         ⅈ⋅y
⎪ ────────────── + ⅈ⋅y⋅asin⎜─⎟ - ────────────────     otherwise
⎪       ⎽⎽⎽⎽⎽⎽⎽⎽           ⎝x⎠           ⎽⎽⎽⎽⎽⎽⎽⎽
⎪      ╱      2                         ╱      2
⎪     ╱      y                         ╱      y
⎪    ╱   1 - ──                  x⋅   ╱   1 - ──
⎪   ╱         2                      ╱         2
⎩ ╲╱         x                     ╲╱         x



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

Reply via email to