Answer on Question #75362 – Math – Quantitative Methods
Question
Write down Runge Kutta Fehlberg Method (Error Control)
Solution
Consider the problem:
y′=f(x,y),y(x0)=y0
The Runge-Kutta-Fehlberg method is single-step method. This method has a procedure to determine whether the correct step size h is used. Each step requires the use of the following six values:
k1=h⋅f(xk,yk)k2=h⋅f(xk+41h,yk+41k1)k3=h⋅f(xk+83h,yk+323k1+329k2)k4=h⋅f(xk+1312h,yk+21971932k1−21977200k2+21977296k3)k5=h⋅f(xk+h,yk+216439k1−8k2+5133680k3−4104845k4)k6=h⋅f(xk+21h,yk−278k1+2k2−25653544k3+41041859k4−4011k5)
Then we calculate the approximation to the solution with the help of the method of the fourth order:
wk+1=yk+21625k1+25651408k3+41012197k4−51k5,Error=O(h4)
And the approximation to the solution with the help of the method of the 5th order:
yk+1=yk+13516k1+128256656k3+5643028561k4−509k5+552k6,Error=O(h5)
At each step, two different approximations for the solution are made and compared.
R=h1∣wk+1−yk+1∣,δ=(2Rε)41
If the two answers are in close agreement (R≤ε), the approximation is accepted. If the two answers do not agree to a specified accuracy (ε), the step size is reduced. If the answers agree to more significant digits than required, the step size is increased. The optimal step size is (δ⋅h)
Answer provided by https://www.AssignmentExpert.com
Comments