Hi,

On 6 October 2011 11:57, Scott <[email protected]> wrote:

> How do I coerce integrate(a/(a**2+b*a+b*c*x**2),x) to yield.
> This may be a double post.
>
>                Sqrt[b] Sqrt[c] x
> Sqrt[a] ArcTan[-------------------]
>               Sqrt[a] Sqrt[a + b]
> -----------------------------------
>    Sqrt[b] Sqrt[a + b] Sqrt[c]
>
>
>
> Rather than:
> var('x,a,b,c')
> integrate(a/(a**2+b*a+b*c*x**2),x)
>
> a*((-b*c/(4*a*b**3*c**2 + 4*a**2*b**2*c**2))**(1/2)*log(x + (-b*c/
> (4*a*b**3*c**2 + 4*a**2*b**2*c**2))**(1/2)*(2*a*b + 2*a**2)) - (-b*c/
> (4*a*b**3*c**2 + 4*a**2*b**2*c**2))**(1/2)*log(x - (-b*c/
> (4*a*b**3*c**2 + 4*a**2*b**2*c**2))**(1/2)*(2*a*b + 2*a**2))
>

I would start from making x, a, b,c real, e.g.:

In [4]: var('a:c,x', real=True)
Out[4]: (a, b, c, x)

In [5]: integrate(a/(a**2+b*a+b*c*x**2),x)

but this fails, see http://code.google.com/p/sympy/issues/detail?id=2718.


>
> Thanks
>
> Scott
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" 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?hl=en.
>
>
Mateusz

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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?hl=en.

Reply via email to