Beruflich Dokumente
Kultur Dokumente
y *r + 1 = yr + h[f(xr , yr )]
h
yr + 1 = yr + 2
[f(xr , yr ) + f(xr + 1 , y*r + 1)] and xr + 1 = xr + h
Starting with y0 to find y1
y *1 = y0 + h[f(x0 , y0 )]
h
y1 = y0 + 2
[f(x0 , y0 ) + f(x1 , y*1)] and x1 = x0 + h
dy
1. dx
= 1 + xy
x0 = 0 , and y0 = 1
y *1 = y0 + h[f(x0 , y0 )]
h
y1 = y0 + 2
[f(x0 , y0 ) + f(x1 , y*1)] and x1 = x0 + h
y *1 = 1 + 0.1[f(0,1]
y *1 = 1 + 0.1[1 + 1 × 0] = 1.1
h
y1 = y0 + 2
[f(x0 , y0 ) + f(x1 , y*1)] and x1 = x0 + h
Mjbs/NumericalAnalysisD2 /EulerLec2 1
Numerical Analysis
Numerical methods for solving differential equations
Modified Euler Lecture 2
h
y1 = y0 + 2
[f(0,1) + f(0.1,1.1)]
0.1
y1 = 1 + 2
[(1 + 1 × 0) + (1 + 0.1×1.1)]
0.1
y1 = 1 + 2
[(1) + (1.11)]
y1 = 1 + 0.05[(2.11)] = 1.1055
---------------------------------------------------------------------------------
y *2 = y1 + h[f(x1 , y1 )]
h
y2 = y1 + 2
[f(x1 , y1 ) + f(x2 , y*2)] and x2 = x1 + h
y *2 = 1.1055 + 0.1[f(0.1,1.1055]
h
y2 = y1 + 2
[f(x1 , y1 ) + f(x2 , y*2)]
h
y2 = y1 + 2
[f(0.1,1.1055) + f(0.2,1.216555)]
0.1
y2 = 1.1055 + 2
[(1 + 0.1 × 1.1055) + (1 + 0.2×1.216555)]
Mjbs/NumericalAnalysisD2 /EulerLec2 2
Numerical Analysis
Numerical methods for solving differential equations
Modified Euler Lecture 2
0.1
y2 = 1.1055 + 2
[(1.11055) + (1.243311)]
---------------------------------------------------------------------------------
y *3 = y2 + h[f(x2 , y2 )]
h
y3 = y2 + 2
[f(x2 , y2 ) + f(x2 , y*2)] and x2 = x1 + h
y *3 = 1.223193 + 0.1[f(0.2,1.223193]
h
y3 = y2 + 2
[f(x2 , y2 ) + f(x3 , y*3)]
h
y3 = y2 + 2
[f(0.2,1.223193) + f(0.3,1.34765686)]
0.1
y3 = 1.223193 + 2
[(1 + 0.2 × 1.223193) + (1 + 0.3×1.34765686)]
0.1
y3 = 1.223193 + 2
[(1.2446386) + (1.404297058)]
y *4 = y1 + h[f(x3 , y3 )]
h
y4 = y3 + 2
[f(x3 , y3 ) + f(x4 , y*3)] and x3 = x2 + h
Mjbs/NumericalAnalysisD2 /EulerLec2 3
Numerical Analysis
Numerical methods for solving differential equations
Modified Euler Lecture 2
y *4 = 1.505900559+ 0.1[f(0.3,1.355639783]
h
y4 = y3 + 2
[f(x3 , y3 ) + f(x4 , y*4)]
h
y4 = y3 + 2
[f(0.3,1.355639783) + f(0.4,1.496308976)]
0.1
y4 = 1.505900559+ 2
[(1 + 0.3 × 1.355639783) + (1 +
0.4×1.496308976)]
0.1
y4 = 1.505900559+ 2
[(1.406691935) + (1.59852359)]
----------------------------------------------------------------------------------
Mjbs/NumericalAnalysisD2 /EulerLec2 4
Numerical Analysis
Numerical methods for solving differential equations
Modified Euler Lecture 2
y *5 = y1 + h[f(x4 , y4 )]
h
y5 = y4 + 2
[f(x4 , y4 ) + f(x5 , y*5)] and x3 = x2 + h
y *5 = 1.505900559+ 0.1[f(0.4,1.505900559]
h
y5 = y4 + 2
[f(x4 , y4 ) + f(x5 , y*5)]
h
y5 = y4 + 2
[f(0.4,1.505900559) + f(0.5,1.666136581]
0.1
y5 = 1.505900559+ 2
[(1 + 0.4 × 1.505900559) + (1 +
0.5×1.666136581)]
0.1
y5 = 1.505900559+ 2
[(1.602360224) + (1.833068291)]
---------------------------------------------------------------------------------
Mjbs/NumericalAnalysisD2 /EulerLec2 5