Question: Python code I have this code to start with. from math import exp def d_pre(A, alpha, h, t): d = A*((exp(-t/alpha))/(1+(t**h))) return d x =
Python code
I have this code to start with.
from math import exp
def d_pre(A, alpha, h, t):
d = A*((exp(-t/alpha))/(1+(t**h)))
return d
x = d_pre(0.88,0.23, 0.38, .5)
print(x)
I now need to take that and calculate a time series from .01 to .51 seconds at .01 intervals.
Next I need to plot it using Matplotlib with labels of "time(s)" on the abscissa (x-axis) and "predicted response (unitless)" on the ordinate (y-axis).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
