Re: [sympy] Easy way to use S()

2023-07-02 Thread David Bailey
On 02/07/2023 23:44, Oscar Benjamin wrote: On Sun, 2 Jul 2023 at 23:06, David Bailey wrote: 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 +

Re: [sympy] Easy way to use S()

2023-07-02 Thread Oscar Benjamin
On Sun, 2 Jul 2023 at 23:06, David Bailey wrote: > > 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 +

[sympy] Easy way to use S()

2023-07-02 Thread David Bailey
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