Questions and discussion for this lecture live here. Fire away by hitting Reply below
Hi Sean,
tmax = 60 #(sec) The max time
delta_t = 0.01 #(sec) The timestep
nPoints = tmax/delta_t #Number of equally spaced data points
t = np.linspace(0, tmax, int(nPoints)) # Time vector
According to the code above, shouldn’t it be nPoints = tmax/delta_t + 1 for delta_t to be 0.01?
Hey @mrgurer - good catch!
Those ‘out by one errors’ still get me every now and then!
Thanks for posting.
Seán