View raw

1 import numpy as np 2 from math import exp, cos, sin 3 import matplotlib.pyplot as plt 4 5 t = [0.01 * x for x in range(500)] 6 y = [1.0015 - 1.0404 * exp(-0.432 * t) + 0.039 * exp(-11.5567 * t) for t in t] 7 plt.plot(t, y) 8 plt.show() 9