Comment #33 on issue 1778 by smichr: Rational from string can be improved
http://code.google.com/p/sympy/issues/detail?id=1778

comment 31a: done
comment 31b, 32a: what about this:
nsimplify(expr, rational=True) => calls rsimplify to be named _real_to_rational sympify(expr, rational=True) => does the replacement of any numbers with rationals

32b: That's fine as long as we keep it to a fraction literal. Do you want the limit_denominator option, too? i.e. Rational('3.1415', limit_denominator=10) -> 22/7

32c: I'll take the others out.

32c: I was thinking about giving sympify a plugin option: S(expr, plugin=myfunc) where one could provide their own preprocessing function. The default would be all
the preprocessing code that is presently in sympify. Any thoughts on this?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-iss...@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