SymPy Cheatsheet
SymPy Cheatsheet
SymPy Cheatsheet
Nasser M. Abbasi
Contents
1 How to solve a first oder ODE? 1
3 How to solve and ODE and convert the result to latex string? 2
1
2
y(x) = x2 + x + 3
u(x, t) = F (t + x)
3
if type(expr) is sympy.Derivative:
print("yes")
#yes
import sympy
x = sympy.symbols('x')
y = sympy.Function('y')
process(y(x))
This prints
the function argument is x
the function name itself is y