pystencils.sympyextensions.math.get_symmetric_part#
- pystencils.sympyextensions.math.get_symmetric_part(expr, symbols)#
Returns the symmetric part of a sympy expressions.
This function returns the symmetric part of the given expression w.r.t. the given degrees of freedom, computed as \(\frac{1}{2} [ f(x_0, x_1, ..) + f(-x_0, -x_1) ]\).