You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/3_numerical.rst
+27-17Lines changed: 27 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,29 @@ The first-order explicit Euler scheme advances the position by sampling the velo
45
45
46
46
This method incurs a global error of order :math:`O(\Delta t)` and requires only one velocity evaluation per step.
47
47
48
-
**Second-Order Runge-Kutta (Heun's Method)**
48
+
**Runge-Kutta Method**
49
+
50
+
In an explicit :math:`s`-stage Runge–Kutta method for the initial-value problem:
51
+
52
+
.. math::
53
+
54
+
y' = f(t,y), \quad y(t_n) = y_n
55
+
56
+
one advances the solution by a step :math:`h` as follows. First compute the intermediate slopes
57
+
58
+
.. math::
59
+
60
+
k_i = f\Bigl(t_n + c_i\,h,\;y_n + h \sum_{j=1}^{i-1} a_{ij}\,k_j\Bigr),
61
+
\quad i = 1,2,\dots,s
62
+
63
+
and then form the new approximation by
64
+
65
+
.. math::
66
+
67
+
y_{n+1} = y_n + h \sum_{i=1}^s b_i\,k_i.
68
+
69
+
70
+
*Second-Order Runge-Kutta (RK2, Heun's)*
49
71
50
72
Heun's method attains second-order accuracy by combining predictor and corrector slopes:
51
73
@@ -58,7 +80,7 @@ Heun's method attains second-order accuracy by combining predictor and corrector
58
80
59
81
This scheme yields a global error of order :math:`O(\Delta t^2)` with two velocity evaluations per step.
60
82
61
-
**Classical Fourth-Order Runge-Kutta (RK4)**
83
+
*Classical Fourth-Order Runge-Kutta (RK4)*
62
84
63
85
The classical RK4 method achieves fourth-order accuracy via four slope evaluations at intermediate points:
64
86
@@ -72,22 +94,10 @@ The classical RK4 method achieves fourth-order accuracy via four slope evaluatio
72
94
73
95
This yields a global error of order :math:`O(\Delta t^4)` with four velocity evaluations per step.
74
96
75
-
**Sixth-Order Runge-Kutta (RK6)**
76
-
77
-
The seven-stage scheme uses non-uniform weights to attain global :math:`O(\Delta t^6)` accuracy. This method originates from [Butcher]_, as well as the coefficients (Butcher table) listed in the basically-tailest table of the reference.
0 commit comments