mesnardo on master
Minor changes * [Module 2, Les… (compare)
labarba on format
N = int(T/dt)followed by
t = numpy.linspace(0.0, T, N). Don't you want to set
N = int(T/dt)+1? As it is, the values in the
tarray have values like
0.010001, 0.020002, 0.030003 ....
t = numpy.linspace(0.0, T, N+1)
In a local group discussion today, we found another correction to module 01_02. The Euler's method loop. Currently, the loop reads:
z=z0 # time-loop using Euler's method for n in range(N): u = u + dt*numpy.array([u, g*(1-u/zt)]) z[n] = u
But this overwrites z with non-initial data.
Loop should read
z=z0 # time-loop using Euler's method for n in range(1,N): u = u + dt*numpy.array([u, g*(1-u/zt)]) z[n] = u
I will create another pull request. Thanks for all your hard work!
looked up a video online that said to "pull request" but that didn't quite work
would really appreciate the help
thank you in advance
Hi, I have a little question about the third question of module 1 (Array trigonometry), according to my calculations the answer is:
In : p
In : r
Out: array([ 11.2, 4.7, 6.6])
In : numpy.power((numpy.sin(p/r)),3)
Out: array([ 0.20030151, 0.99009101, 0.66454238])
Is there something wrong? Because I can't check the answer. Thanks in advance...