Comment #2 on issue 2842 by waks...@gwax.com: evalf should not use conjugate or expand if there are symbols; 1 should return as 1.0
http://code.google.com/p/sympy/issues/detail?id=2842

It is worth noting that the current behavior contradicts the documentation:

From http://docs.sympy.org/dev/modules/evalf.html : "If the expression contains symbols or for some other reason cannot be evaluated numerically, calling .evalf() or N() returns the original expression"

S(1)/(Symbol('n')+1)
1/(n + 1)
N(_)
conjugate(n)/(n*conjugate(n) + n + conjugate(n) + 1) + 1/(n*conjugate(n) + n + conjugate(n) + 1)
simplify(_)
1/(n + 1)


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

Reply via email to