A sample Jupyter notebook¶
[1]:
import numpy as np
import sympy as sy
from sympy import init_printing
from IPython.display import display
import matplotlib.pyplot as plt
[2]:
xn = np.linspace(0., 1., 21)
yn = np.sin(2.0*np.pi*xn)
plt.plot(xn,yn);
[3]:
xs, ys = sy.var('x y', real=True)
mex = xs**2 + ys - ys**3 * xs
mex
[3]:
$\displaystyle x^{2} - x y^{3} + y$
math expression
\[\int_0^\infty f(x)dx\]
.
[4]:
display(mex)
$\displaystyle x^{2} - x y^{3} + y$