Relative Content

Tag Archive for python-3.xsympy

sympy handling of exponents

I’m trying to algebraic calculations where both the variable and the exponent are symbols. But it seems that sympy does not fully understand the meaning of law of exponents:

Sympy & Python – pretty printing over multiple lines

Is there a way to make python print multiple lines while keeping the nice equation format style (see 2x – 4 = 20). So far, I only get python to print the last equation in SymPy’s pretty printing style. In the below example it is 2x – 4 = 20.