2079 6

Numerical Method20795 marksHeun's method

Write down the program for solving ordinary differential equation using Heun's method.

Write down the program for solving ordinary differential equation using Heun's method. [5]

Heun's method is a predictor-corrector method (also called the improved Euler's method) for solving ODEs of the form: $$\frac{dy}{dx} = f(x, y), \quad y(x0) = y0$$ The formula is: $$y{n+1} = yn + \frac{h}{2}(m1 + m2)$$ Where: - $m1 = f(xn, yn)$ (slope at the beginning of the interval) -

Up nextFit the quadratic function for the data given below using least square method. | x | 1.0 |