Skip to content
Snippets Groups Projects
Commit b8e107b1 authored by JuanPi Carbajal's avatar JuanPi Carbajal
Browse files

analytic solution

parent 80641a2a
Branches
No related tags found
No related merge requests found
......@@ -54,8 +54,12 @@ v = np.zeros(nt) # Speicherzuweisung für Geschwindigkeitarray
import matplotlib.pyplot as plt
# Analytische Lösung
v_ana = lambda t: a * t
plt.ion() # interaktives Plotten "on"
#plt.clf() # Diese Zeile auskommentieren, um den Plot zu leeren
plt.plot(t,v,'.-') # Punkt-Dash-Plot der Funktion
plt.plot(t,v,'.') # Punkt-Plot der numerische Lösung
plt.plot(t,v_ana(t),'-') # Linien-Plot der analytische Lösung
plt.show() # Zeigt den Plot
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment