[sympy] Re: small questions about manipulating equations and sums

2020-05-01 Thread Chris Smith
https://github.com/sympy/sympy/pull/18174 is open for the ability to work with equations and https://github.com/sympy/sympy/issues/19191 for extracting constants/sign from Integral/Sum. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe

[sympy] Re: small questions about manipulating equations and sums

2020-05-01 Thread Chris Smith
I think #19191 addresses removal of constant/sign from Sum/Integral. And #18174 addresses the ability to work with equations. -- 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

[sympy] Re: small questions about manipulating equations and sums

2020-05-01 Thread Thomas Ligon
Do you want me to open issues on GitHub? This is actually two topic (equations and sums), an I should have known better than to combine them. > > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving

Re: [sympy] Re: small questions about manipulating equations and sums

2020-04-30 Thread Oscar Benjamin
Seeing that use of factor_terms makes me think again that expand should definitely pull out that constant. On Thu, 30 Apr 2020 at 22:27, Chris Smith wrote: > > The following light-weight version of what Oscar has suggested might be > sufficient: > > >>> def add(s,o): > ... assert s.func ==

[sympy] Re: small questions about manipulating equations and sums

2020-04-30 Thread Chris Smith
The following light-weight version of what Oscar has suggested might be sufficient: >>> def add(s,o): ... assert s.func == o.func ... return s.func(s.lhs+o.lhs,o.rhs+s.rhs) ... >>> def mul(s,o): ... return s.func(o*s.lhs,o*s.rhs) ... >>> def rmul(s,o): ... return s.func(o*s.lhs,o*s.rhs)