In [2]:
# setup SymPy
from sympy import *
x, y, z, t = symbols('x y z t')
init_printing()
# setup plotting
%matplotlib notebook
import matplotlib.pyplot as mpl
from util.plot_helpers import plot_vec, plot_vecs, autoscale_arrows
In [5]:
simplify(sin(2*x)*cos(2*x))
Out[5]:
In [11]:
a = Matrix([1,1,1])
a.
Out[11]:
In [14]:
S(1)/3
Out[14]:
In [15]:
type(1)
Out[15]:
In [16]:
type(S(1))
Out[16]:
In [17]:
float(S(1)/3)
Out[17]:
In [18]:
N(S(1)/3)
Out[18]:
In [24]:
pi.n(100)
type(pi.n(100))
Out[24]:
In [20]:
e
In [21]:
E
Out[21]:
In [ ]: