In [16]:
# Configure Jupyter so figures appear in the notebook
%matplotlib inline
# Configure Jupyter to display the assigned value after an assignment
%config InteractiveShell.ast_node_interactivity='last_expr_or_assign'
# import functions from the modsim.py module
from modsim import *
In [17]:
x = 1 * UNITS.meter
Out[17]:
In [18]:
v = Vector(2,3).hat()
Out[18]:
In [19]:
vp = x * v
Out[19]:
In [20]:
type(v)
Out[20]:
In [21]:
type(v * 3)
Out[21]:
In [22]:
type(v * x)
Out[22]:
In [23]:
type(x * v)
Out[23]: