Coding a Fourth-Order Runge-Kutta Integrator in Python and Matlab

  Рет қаралды 24,887

Steve Brunton

Steve Brunton

Күн бұрын

In this video, I code up a 4th-order accurate Runge-Kutta integrator in Python and Matlab, and then I use this integrator to simulate the chaotic Lorenz 1963 system.
Playlist: • Engineering Math: Diff...
Course Website: faculty.washington.edu/sbrunto...
@eigensteve on Twitter
eigensteve.com
databookuw.com
This video was produced at the University of Washington
%%% CHAPTERS %%%
0:00 Problem setup and Lorenz 1963 example
6:16 Matlab code example
24:48 Python code example

Пікірлер: 14
@GoobNoob
@GoobNoob Жыл бұрын
Wow. What a fantastic video and teacher. You really nailed it. This should be the most recommended R-K Python/Matlab tutorial and explanation on KZfaq. The others don't match your level.
@nesslange1833
@nesslange1833 Жыл бұрын
Your Lecture always has been great and full of detail, but coding code from scratch makes it all even more approachable!
@stavrosoik129
@stavrosoik129 Жыл бұрын
This video came right on time where I need to translate a pre existing epidemiological model from matlab to R where we are using ode45 to solve the ODEs! Thanks!
@MrHaggyy
@MrHaggyy Жыл бұрын
Great lecture and code to play around and work with. You mentioned stiff ode for a view videos, and google got me an okisch answer. But a video with some intuition what things might brake ode45 or potential potholes might come in handy.
@hoseinzahedifar1562
@hoseinzahedifar1562 Жыл бұрын
Thank you very much...🌺🌺🌺 comet3 is a really cool function...🤩🤩
@deralaw
@deralaw 9 ай бұрын
An excellent lecture! Please do a session on Implicit RK4 including the matlab coding. Thank you
@lucynowacki3327
@lucynowacki3327 Жыл бұрын
Can we have implicit method based on a fixed-point theorem?
@tabishbadar1320
@tabishbadar1320 Жыл бұрын
Firstly, thanks. Secondly, I computed the trajectories using three methods, 1. Forward Euler, 2. RK2, and 3. RK4 of the chaotic system. Third, using the reference output from MATLAB's ode45, the RK2 had the most minor error value (used MATLAB's immse function to compute errors). Fourth, why so?
@whdaffer1
@whdaffer1 6 ай бұрын
A quick question: how is climate a chaotic system? I understand the reference to Weather but I'm a little unclear on why climate would be chaotic. They are, after all, two different sorts of problems. Weather is an initial value problem, climate is a boundary value problem and one of the boundary values is pretty well understood: namely the insolation.
@user-hu3gn1gi5f
@user-hu3gn1gi5f Жыл бұрын
Could you tell me somebody what pen is used in this video? Awesome!!
@TheTimeRay
@TheTimeRay Жыл бұрын
brightness\contrast 😕
@charlesspringer4709
@charlesspringer4709 Жыл бұрын
Is there any info on how these videos are made? Also, the derivation in Numerical Recipes is wrong but the code is correct. I assumed when I noticed this in 1990 that it is an error copied from book to book.
@charlesspringer4709
@charlesspringer4709 Жыл бұрын
@@emmettkeyser1110 That means he is left handed?
路飞太过分了,自己游泳。#海贼王#路飞
00:28
路飞与唐舞桐
Рет қаралды 39 МЛН
Simulating Rocket Trajectories with Python
16:36
Miscellaneous Bits
Рет қаралды 10 М.
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 634 М.
Stop, Intel’s Already Dead! - AMD Ryzen 9600X & 9700X Review
13:47
Linus Tech Tips
Рет қаралды 1 МЛН
Linearizing Nonlinear Differential Equations Near a Fixed Point
23:28
5 Math Skills Every Programmer Needs
9:08
Sahil & Sarra
Рет қаралды 1 МЛН
4th-Order Runge Kutta Method for ODEs
12:07
LearnChemE
Рет қаралды 136 М.
How To Solve and Animate a 3D Double Pendulum in Python
39:27
Mr. P Solver
Рет қаралды 19 М.
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 1,1 МЛН