On Wed, Jan 11, 2012 at 7:21 AM, Olivier Grisel <[email protected]>wrote:

> Just a followup:
>
> Apparently sympy (0.7.1) is unable to find an expansion of the real part
> of the root that interests me: it yields a RuntimeError:
>
> >>> sp.expand(sol, complex=True)
>
> => RuntimeError: maximum recursion depth exceeded while calling a Python 
> object
>
> Apparently wolframlapha is able to find a something interesting in terms of 
> phase:
>
>
>
> http://www.wolframalpha.com/input/?i=Re[-%28%281%2Bi+sqrt%283%29%29+d%29%2F%284+%28d
> ^3-48+d^2+log%28n%29%2B4+sqrt%286%29+sqrt%2824+d^4+log^2%28n%29-d^5+log%28n%29%29%29^%281%2F3%29%29-%28%281-i+sqrt%283%29%29+%28d^3-48+d^2+log%28n%29%2B4+sqrt%286%29+sqrt%2824+d^4+log^2%28n%29-d^5+log%28n%29%29%29^%281%2F3%29%29%2F%284+d%29%2B1%2F2]
>
> I wonder whether the fact that sympy is crashing with a recursion depth
> exceeded is a bug or this a consequence of a missing algorithm only found
> in mathematica.


Could you post the sympy imput because I get:


>>> -(1+I*sqrt(3))*d/(4*d)
-1/4 - sqrt(3)*I/4
>>> re(_)
-1/4

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