Numerical Methods Formulas
Numerical Methods Formulas
1. Bisection Method
- Main Concept:
Find the root of the equation f(x) = 0 by repeatedly bisecting the
interval and selecting a subinterval in which the root must lie.
- Formula:
x_mid = (a + b)/2
- Update:
If f(a) * f(x_mid) < 0, then root lies between a and x_mid.
Else, root lies between x_mid and b.
------------------------------------------------------------
- Main Formula:
y_(n+1) = y_n + (1/6)(k1 + 2k2 + 2k3 + k4)
- Where:
k1 = h * f(x_n, y_n)
k2 = h * f(x_n + h/2, y_n + k1/2)
k3 = h * f(x_n + h/2, y_n + k2/2)
k4 = h * f(x_n + h, y_n + k3)
h = step size.
------------------------------------------------------------
- Main Formula:
Integration from a to b of f(x) dx is approximately (b - a)/2 * [f(a) +
f(b)]
------------------------------------------------------------
- Main Formula:
P(x) = L0(x) * y0 + L1(x) * y1 + L2(x) * y2
- Where:
L0(x) = (x - x1)(x - x2) / (x0 - x1)(x0 - x2)
L1(x) = (x - x0)(x - x2) / (x1 - x0)(x1 - x2)
L2(x) = (x - x0)(x - x1) / (x2 - x0)(x2 - x1)
------------------------------------------------------------