diff options
author | Marius Peter <blendoit@gmail.com> | 2019-07-03 22:10:22 -0700 |
---|---|---|
committer | Marius Peter <blendoit@gmail.com> | 2019-07-03 22:10:22 -0700 |
commit | 9060d5a3d1f4d247b376894dea64aa694d9e98a6 (patch) | |
tree | e136608e4495086ba55a4a6edd878710d53cd425 /hw1/prob_5.py | |
parent | 22d52d09fcd15d38b47e795071a8ec4b4741e690 (diff) |
homework submission
Diffstat (limited to 'hw1/prob_5.py')
-rw-r--r-- | hw1/prob_5.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hw1/prob_5.py b/hw1/prob_5.py new file mode 100644 index 0000000..c3aa6d4 --- /dev/null +++ b/hw1/prob_5.py @@ -0,0 +1,11 @@ +import numpy as np +import matplotlib.pyplot as plt + +t = [0.01 * x for x in range(0, 1001)] +y = [-(t + 1) * np.exp(-t) for t in t] + +plt.plot(t, y) +plt.xlabel('t (sec)') +plt.ylabel('y(t)') +plt.title('MAE 171A - Homework 1.5\n Step Response') +plt.show() |