The value of this brief video is the overall explanation of k1 thru k4, what you're doing, and the revelation as to why it is so accurate. Thank you.
@nefereous90823 жыл бұрын
this video is really good and quick, now i have the intuition to study further
@fxbros50347 ай бұрын
Just a fyi: at 2:09 it shows "x_ecm = x_ecm + fun(t,x)*dt". However in the actual code it is "x_ecm = x_ecm + fun(t,x_ecm)*dt"
@deniz.7200 Жыл бұрын
The explanation with code is really helpful
@rahav8112 ай бұрын
thank you, this was very focused and helpful.
@pppooppoo7763 Жыл бұрын
Shouldn't the k equations be timestep * function?
@misterx89344 жыл бұрын
Hi, shouldn't it be x_ecm = x_ecm + fun(t, x_ecm)*dt? :)
@LetsCodePhysics4 жыл бұрын
...but the mistake helps make my point!
@jasonthomas29087 ай бұрын
Nice video. I just thought I'd mention, that when you say the Runge Kutta Method has 4 points to calculate, then you're specifically talking about the 4th Order Runge Kutta Method. There are other orders. There are also other coefficients, and you're using Runge's coefficients. Anyway, still a good video, cheers
@NZIT16 жыл бұрын
Hi, I tried to follow step by step your code unfortunately when running the code the graph doesn't display. I am just wondering what kind of module in python do you import? In my case I have imported 1-Matplotlib.pyplot as plt and 2- numpy. Thanks
@LetsCodePhysics6 жыл бұрын
This series' codes are made with VPython (Vpython.org). You can also access the code from the video description.
@shahriarhabibi83827 ай бұрын
Very nice!
@shahriarhabibi83827 ай бұрын
Thanks a lot!
@ddylancristo92296 жыл бұрын
thanks a lot :)
@WhateverOwO4 ай бұрын
I still don't get it. Like when you define the derivative what does the argument x do, you never use it in your calculations so what is it doing there?
@AgnaktoreX3 ай бұрын
This is indeed true for the first example: x'(t) = 3 * t^2 The second example at 1:53 uses the parameter x: x'(t) = x(t)
@WhateverOwO3 ай бұрын
Oh, oh, OH.... dude, math notation gets confusing if there's no clarification or footnotes or anything, Wikipedia sucks at explaining the thing @@AgnaktoreX
@abhimanyusinghkhichi65154 жыл бұрын
can you please explain rate(100) line in the code ?
@LetsCodePhysics4 жыл бұрын
rate controls the animation speed in frames per second. It has no impact on the physics model.
@abhimanyusinghkhichi65154 жыл бұрын
@@LetsCodePhysics thanks for explaining
@zman972113 жыл бұрын
At kzbin.info/www/bejne/bpCzn3aJqKaSeLM you pass x (and even refer to it in your voiceover), but it's not even used in fun()? In fun(), you're assigning the result (a real number) to a variable of the same name (fun). You're right, the weighted average happens on line 27, but the stuff highlighted immediately before has absolutely no effect, unless you've redefined the language somewhere I can't see. Otherwise, I get the drift, and thanks for a quick 2 minute primer on this.
@zman972113 жыл бұрын
Oh, I see, immediately afterward you DO use x in fun(). You should avoid that name collision though. Thanks again.
@gopnikboy7 ай бұрын
still not the perfect explaination but getting closer for sure. how has there been no good visual explanations for numerical methods? man my studies are so much harder than they have to be its simple stuff always explained like the most complex shit