[sympy] Re: Newbie: display product

2019-07-09 Thread Gary Pajer
Yes. Simple question, for sure. I've tried a lot of things, none has worked yet. For example Enter code here...a, b, x, y = symbols('a b x y') ex1 = Eq(a, x + y) ex2 = Eq(b, x * y) a * b returns $ab$, and efforts to have that rendered as $(x+y)xy$ haven't worked. On Monday, July 8, 2019 at

[sympy] Re: Newbie: display product

2019-07-09 Thread Gagandeep Singh (B17CS021)
Is https://github.com/sympy/sympy/pull/17097 related to your doubt? If yes, then I would say wait for this to be merged. Moreover, have you tried, Eq(Mul(*[eq.lhs for eq in ()]), Mul(*[eq.rhs for eq in (https://groups.google.com/group/sympy. To view this discussion on the web visit https://gro

[sympy] Re: Newbie: display product

2019-07-09 Thread Chris Smith
This is a substitution. `subs` will replace symbols in an expression with different expressions. The syntax is `expr.subs(old, new)` or `expr.subs({oldi: newi})` or `expr.subs([(old1, new1), (old2, new2), ...])`. You can read about the different forms with `help(Expr.subs)`. >>> eqs = Eq(a,