Runge-Kutta method: Difference between revisions

Content deleted Content added
m Improve formatting of problem (\delta t not dt, \times not *)
m Clarify
Line 1: Line 1:
{{draft task}}
{{draft task}}
Given the example Differential equation:
Given the example Differential equation:
:<math>y' = t \times \sqrt y</math>
:<math>y'(t) = t \times \sqrt {y(t)}</math>
With initial condition:
With initial condition:
:<math>t_0 = 0</math> and <math>y_0 = y(t_0) = y(0) = 1</math>
:<math>t_0 = 0</math> and <math>y_0 = y(t_0) = y(0) = 1</math>
This equation has an exact solution:
This equation has an exact solution:
:<math>y = \tfrac{1}{16}(t^2 +4)^2</math>
:<math>y(t) = \tfrac{1}{16}(t^2 +4)^2</math>
;Task
;Task
Demonstrate the commonly used explicit fourth-order Runge–Kutta method as defined in the [[wp:Runge–Kutta_methods#Common_fourth-order_Runge.E2.80.93Kutta_method|Wikipedia article]] to solve the above differential equation.
Demonstrate the commonly used explicit fourth-order Runge–Kutta method as defined in the [[wp:Runge–Kutta_methods#Common_fourth-order_Runge.E2.80.93Kutta_method|Wikipedia article]] to solve the above differential equation.