This has been discussed from time to time. Basically you have to roll your own:
``` >>> e=Eq(x,y) >>> e Eq(x, y) >>> do=lambda e,g: e.func(g(e.lhs),g(e.rhs)) >>> do(e,lambda _:_*3) Eq(3*x, 3*y) >>> do(_,lambda _:_/3) Eq(x, y) ``` On Friday, December 16, 2016 at 2:18:13 AM UTC-6, bsdz wrote: > > Hi > > Given an expression like Eq(a/b,c), how can I manipulate both lhs and rhs > together? It would be useful if something like b*Eq(a/b,c) can > become Eq(a,b*c). > > Thanks > Blair > -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/96bd8167-f083-4e7d-a86b-7c1683368885%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
