pystencils.sympyextensions.math.simplify_by_equality#
- pystencils.sympyextensions.math.simplify_by_equality(expr, a, b, c)#
Uses the equality a = b + c, where a and b must be symbols, to simplify expr by attempting to express additive combinations of two quantities by the third.
This works on expressions that are reducible to the form \(a * (...) + b * (...) + c * (...)\), without any mixed terms of a, b and c.