Updates:
Labels: Printing Evalf
Comment #3 on issue 3706 by [email protected]: Hyperexpand of tan
http://code.google.com/p/sympy/issues/detail?id=3706
The ValueError in the first comment is clearly a bug.
For the second one, it works if you evaluate the lerchphi's
In [37]: a.atoms(lerchphi)
Out[37]:
⎛⎡ ⎛ ⅈ⋅π⎞⎤⎞
⎜⎢ ⎛ 2⋅z + π⎞ ⎜ (2⋅z - π)⋅ℯ ⎟⎥⎟
set⎜⎢lerchphi⎜1, 1, ───────⎟, lerchphi⎜1, 1, ──────────────⎟⎥⎟
⎝⎣ ⎝ 2⋅π ⎠ ⎝ 2⋅π ⎠⎦⎠
In [38]: [i.subs(z, 0) for i in a.atoms(lerchphi)]
Out[38]:
⎡ ⎛ ⅈ⋅π⎞⎤
⎢ ⎜ -ℯ ⎟⎥
⎢lerchphi(1, 1, 1/2), lerchphi⎜1, 1, ─────⎟⎥
⎣ ⎝ 2 ⎠⎦
And even
In [43]: b = a.subs(z, 0)
works. If you examine the traceback, the issue is with printing, which
calls evalf! This is not only bad because of possible exceptions, but it
can in general make things quite slow.
So two bugs here, which should be fixed. Then hopefully we'll uncover some
better behavior that is already there but which the bugs are preventing us
from seeing.
--
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.