Dear Sympy list (sorry for deluge!),
  I'm getting some unexpected (to me) behaviour from evalf() - please
see the bottom of my email. Is this a) incorrect expectations, b)
incorrect usage, c) known bug, or d) something else?

all the best
--cjc

In [108]: k = Symbol('k')

In [109]: w = Symbol('w')

In [110]: a = 1+w*exp(-1j*k/4)

In [111]: a.evalf(subs={k:7})
Out[111]: 1 + w*exp(-I*k/4)

In [112]: a.evalf(subs={w:2})
Out[112]: 1 + w*exp(-I*k/4)

In [113]: a.evalf(subs={w:2,k:7})
Out[113]: 0.643507888701016 - 1.96797189374787*I

In [114]: a.evalf(subs={k:7,w:2})
Out[114]: 0.643507888701016 - 1.96797189374787*I

In [115]: a = 1 + exp(-1j*k/4)

In [116]: a.evalf(subs={k:7})
Out[116]: 0.821753944350508 - 0.983985946873937*I

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

Reply via email to