ich versuche mich gerade ein an Python heran zu tasten und verstehe folgendes nicht.
Wenn ich diesen Ausdruck plotte, spuckt mir Python einen Graph aus.
Code: Alles auswählen
t = np.arange(0, 6, 0.1)
a = 2
tau = 1
t0 = 1
x = 1 + a * np.exp(-1*(t-t0)/tau)
plt.plot(x)
Code: Alles auswählen
t = np.arange(0, 6, 0.1)
def p1(t, a = 2, tau = 1, t0 = 1):
return 1 + a * np.exp(1*(t-t0)/tau)
plt.plot()