Status: Accepted
Owner: ----
Labels: Type-Defect Priority-High NeedsReview smichr

New issue 3133 by smi...@gmail.com: e.evalf(1) does not mean evaluate to 1 decimal place
http://code.google.com/p/sympy/issues/detail?id=3133

There is a very serious logical error in the new assumptions system when it comes to this: in a couple of places (handlers/ntheory.py and handlers/sets) it is using e.evalf(1) to tell is something is an integer. This will never pass for anything but powers of 10 since evalf evaluates 1 significant digit; it is not the same as round(e, 1) (which is also not a good way to test if something is an integer).

see https://github.com/sympy/sympy/pull/1068

--
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