Comment #1 on issue 3706 by [email protected]: Hyperexpand of tan
http://code.google.com/p/sympy/issues/detail?id=3706
We can get an answer by substituting the pi away:
In [67]: _.subs(pi, t)
Out[67]: 8*z*hyper((1, 1/2 - z/t, 1/2 + z/t), (3/2 - z/t, 3/2 + z/t),
1)/(t**2 - 4*z**2)
In [68]: hyperexpand(_)
Out[68]: 8*z*((-t**2 + 4*z**2)*lerchphi(1, 1, (t + 2*z)/(2*t))/(8*t*z) +
(t**2 - 4*z**2)*lerchphi(1, 1, (-t +
2*z)*exp_polar(I*pi)/(2*t))/(8*t*z))/(t**2 - 4*z**2)
In [69]: simplify(_)
Out[69]: (-lerchphi(1, 1, (t + 2*z)/(2*t)) + lerchphi(1, 1, (-t +
2*z)*exp_polar(I*pi)/(2*t)))/t
In [70]: _.subs(t, pi)
Out[70]: (-lerchphi(1, 1, (2*z + pi)/(2*pi)) + lerchphi(1, 1, (2*z -
pi)*exp_polar(I*pi)/(2*pi)))/pi
In [71]: simplify(_)
Out[71]: (-lerchphi(1, 1, (2*z + pi)/(2*pi)) + lerchphi(1, 1, (2*z -
pi)*exp_polar(I*pi)/(2*pi)))/pi
The solution however is not that useful, maybe not even correct:
In [82]: sol.subs(z, 0)
Out[82]:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
[...]
ValueError: gamma function pole
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.