In [ ]:
import sympy as sp
# See: http://docs.sympy.org/latest/tutorial/printing.html
sp.init_printing()
Make one symbol:
In [ ]:
x = sp.symbols("x")
Make several symbols at once:
In [ ]:
x, y, z = sp.symbols("x y z")
In [ ]:
sp.pi
In [ ]:
sp.I
In [ ]:
sp.oo
In [ ]:
sp.sqrt(x)
In [ ]:
x**2
The natural logarithm function ln:
In [ ]:
sp.log(x)
In [ ]:
sp.exp(x)
In [ ]:
sp.cos(x)
In [ ]:
sp.sin(x)
In [ ]:
sp.tan(x)
In [ ]:
sp.cosh(x)
In [ ]:
sp.sinh(x)
In [ ]:
sp.tanh(x)
In [ ]:
sp.acos(x)
In [ ]:
sp.asin(x)
In [ ]:
sp.atan(x)
In [ ]:
sp.acosh(x)
In [ ]:
sp.asinh(x)
In [ ]:
sp.atanh(x)