Updates:
        Labels: -NeedsBetterPatch NeedsReview

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

Please see commit 1778 (the 2nd to the last) in my 1766 branch at github.

The big change to Rational is that all string handling except for real literals is handled in sympify. You can no longer do Rational('3/4') -- you can use Rational(3, 4) or if you want to use the string, use sympify: S('3/4'). The thing about S() is that if it looks like a fraction you will get a fraction. If it doesn't look like a
fraction but you want a fraction, use the 'q' flag: S('.3', q=1) -> 3/10

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