Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2809 by asmeu...@gmail.com: evalf() doesn't go all the way
http://code.google.com/p/sympy/issues/detail?id=2809

In [53]: 2*pi*I*(cos(k*abs(a)*I)/(2*abs(a)*I*(b**2 - a**2)) + cos(k*abs(b)*I)/(2*abs(b)*I*(a**2 - b**2))).subs({a:1, b:2, k:3}).evalf()
Out[53]: -30.2633853551501⋅π

In [54]: 2*pi*I*(cos(k*abs(a)*I)/(2*abs(a)*I*(b**2 - a**2)) + cos(k*abs(b)*I)/(2*abs(b)*I*(a**2 - b**2))).evalf(subs={a:1, b:2, k:3})
Out[54]: -30.2633853551501⋅π

In [55]: pi.evalf()
Out[55]: 3.14159265358979

In [56]: 2*pi*I*(cos(k*abs(a)*I)/(2*abs(a)*I*(b**2 - a**2)) + cos(k*abs(b)*I)/(2*abs(b)*I*(a**2 - b**2))).evalf(subs={a:1, b:2, k:3}).evalf()
Out[56]: -30.2633853551501⋅π

I can't get it to evaluate the pi.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to