summaryrefslogtreecommitdiff
path: root/hw4/prob_2.py
blob: c53cddfb572a28b02948d180c4b01124cda5e13c (plain)
1
2
3
4
5
6
7
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()
Copyright 2019--2024 Marius PETER