Dear Group,
If I want to enter m+1/2, I define m as a symbol and write:
m+S(1)/2.
However if I have a complicated expression with lots of fractions, such as:
1 + x*(m + 1/2)/(2*m + 1) + x**2*(m + 1/2)*(m + 3/2)/(2*(2*m + 1)*(2*m + 2))
it would be much neater if I could automatically wrap all the integers
in S so that no floating point numbers get introduced.
Is that feasible? I did try wrapping the whole expression in S, but that
does not work.
Best wishes,
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/200cecff-6388-7a3b-f2ed-b0a9fff7e42c%40dbailey.co.uk.