Kernel: Python 3
Sympy & Scipy
In [2]:
In [3]:
Plotting
In [4]:
In [5]:
In [6]:
<sympy.plotting.plot.Plot at 0x7fa33b0c6cf8>
In [7]:
<sympy.plotting.plot.Plot at 0x7fa369101860>
In [8]:
In [9]:
<sympy.plotting.plot.Plot at 0x7fa368795d68>
In [10]:
<sympy.plotting.plot.Plot at 0x7fa33b16db70>
ODE
In [12]:
Lançamento de Projétil
In [13]:
In [14]:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-14-d5648b085ab5> in <module>()
6 # We simulate the system and evaluate $v$ on
7 # the given times.
----> 8 v = spi.odeint(f, v0, t, args=(k,))
9 # We plot the particle's trajectory.
10 plt.plot(v[:,0], v[:,1], 'o-',
NameError: name 'v0' is not defined
In [16]:
In [ ]:
Oscilador Amortecido
In [17]:
In [19]:
In [20]:
In [21]:
In [22]:
<matplotlib.text.Text at 0x7fa330160a20>
In [23]:
[<matplotlib.lines.Line2D at 0x7fa3300d1320>]
Vários casos para a mesma condição inicial
In [24]:
In [14]:
/Users/neylemke/.pyenv/versions/anaconda3-2.4.0/lib/python3.5/site-packages/matplotlib/axes/_axes.py:545: UserWarning: No labelled objects found. Use label='...' kwarg on individual plots.
warnings.warn("No labelled objects found. "
(-2, 2)
Diagrama de Fase para vários parâmetros
In [25]:
Oscilações Forçadas
In [26]:
In [27]:
In [94]:
<matplotlib.text.Text at 0x12f9abb70>
In [28]:
[<matplotlib.lines.Line2D at 0x7fa329621668>]
In [29]:
/usr/local/lib/python3.4/dist-packages/matplotlib/axes/_axes.py:545: UserWarning: No labelled objects found. Use label='...' kwarg on individual plots.
warnings.warn("No labelled objects found. "
In [30]:
In [35]:
<function matplotlib.pyplot.show>
In [36]:
0.200240045859
-0.200240016589