Comment #13 on issue 1053 by smi...@gmail.com: make sympify intelligent about 1/2 and 0.5
http://code.google.com/p/sympy/issues/detail?id=1053

Actually, as I read it I imagined that in py3k `sympify(1/2 + x) -> 1/2 + x` with the `0.5` that `1/2` generates automatically going to `S.Half` rather than staying a Float. The problem is, where do you draw the line? Should `.35` become `7/20`? or perhaps only floats that end up having a numerator of 1 should be transformed. But what about `3/2`? Only floats that have a denominator <= 10? Alhough we have functions to make the Float -> Rational conversion, I think the discussion was about what to do with the expression that is first processed with sympify by SymPy.

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