Dear Group,
It seems unfortunate that Python evaluates fractions such as 1/2 to 0.5,
whereas SymPy recognises that in algebraic expressions fractions should
rarely be evaluated to a decimal number. This means that if, for
example, you input 3*x**2/2, you get a nice algebraic expression, but if
you enter
(3/2)*x**2
you get
1.5*x^2
This problem is particularly unfortunate if you cut and paste
expressions a lot, as I tend to do.
I wonder if any thought has been given to this - I know you can always
input Rational(3/2), but that seems very clumsy.
David
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/79efcea3-13ec-d997-5461-8be0536b6431%40dbailey.co.uk.