RK4 - n ) K 2 = tf ( t n + t 2 ,u n + K 1 2 ) K 3 = tf ( t...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 111 - Introduction to Computational Science Fourth Order Accurate Runge-Kutta Scheme Consider the following ODE: ± du dt = f ( u,t ) u (0) = u 0 , where u 0 is the given initial data. Then RK4 is written as: K 1 = Δ tf ( t n ,u
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: n ) K 2 = tf ( t n + t 2 ,u n + K 1 2 ) K 3 = tf ( t n + t 2 ,u n + K 2 2 ) K 4 = tf ( t n + t,u n + K 3 ) u n +1 = u n + K 1 6 + K 2 3 + K 3 3 + K 4 6 1...
View Full Document

Ask a homework question - tutors are online