Comment #28 on issue 1778 by smichr: Rational from string can be improved
http://code.google.com/p/sympy/issues/detail?id=1778
Having not heard anything, I went ahead and did the following:
rework rsimplify et al: rsimplify is used to change a basic expression
into an expression where the numbers are all rationals; sympify is
the place where all strings are processed (and a q option allows
any reals to be replaced with rationals, so .3 will become 3/10);
the behavior of Rational is thus mostly unchanged.
Rational(.1) -> 0
S(.1) == S('.1') -> .1
rsimplify(.1) == S('.1', q=1) -> 1/10
Any feedback on what to call the "q" flag? I'm picking q because it is
short and
indicative of the "q" part that rationals contain (of the p, q properties).
If this is +1 I will pull the work out of 1766 et al in my 1766 branch and
we can get
this applied.
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.