diff options
author | Marius Peter <blendoit@gmail.com> | 2019-08-26 16:59:51 -0700 |
---|---|---|
committer | Marius Peter <blendoit@gmail.com> | 2019-08-26 16:59:51 -0700 |
commit | 0afe26582f3290dd945f3949c5c4176e4a676d8b (patch) | |
tree | 19072727e189ebf3454ae25d92c9104b0e868eb3 /hw4/prob_2.py | |
parent | 8e0ca3c24a8dd2b49edb78b2e92fb7b569958211 (diff) |
Diffstat (limited to 'hw4/prob_2.py')
-rw-r--r-- | hw4/prob_2.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hw4/prob_2.py b/hw4/prob_2.py new file mode 100644 index 0000000..c53cddf --- /dev/null +++ b/hw4/prob_2.py @@ -0,0 +1,8 @@ +import numpy as np +from math import exp, cos, sin +import matplotlib.pyplot as plt + +t = [0.01 * x for x in range(500)] +y = [1.0015 - 1.0404 * exp(-0.432 * t) + 0.039 * exp(-11.5567 * t) for t in t] +plt.plot(t, y) +plt.show() |