I am trying to use sympy in a Jupyter notebook to document and perform a series of mathematical cacluations in a reporducible way.
If I define the following:
from sympy import *
init_printing()
x, y, z = symbols("x y z")
x=y+z
x
then I can display the value of x
(that is, y+z
).
How do I display the full equation (x=y+z
)?
Running Eq(x,y+z)
, even with evaluate=False
) returns the expression with the value of x
substituted (y+z=y+z
).
x
that returns the equivalent ofS('x')
? – Parrish