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