Numerical_Methods_Notes_Final
Numerical_Methods_Notes_Final
Errors in Numbers:
- Absolute Error = |True - Approx|
- Relative Error = Absolute Error / True
- Round-off Error: Due to limited precision
- Truncation Error: From ignoring higher-order terms
Bisection Method:
- Brackets root between [a, b], f(a)f(b) < 0, halves interval
Regula-Falsi Method:
- Estimate: x = (a*f(b) - b*f(a)) / (f(b) - f(a))
- Faster than bisection but can stagnate
Newton-Raphson Method:
- x = x - f(x)/f'(x)
- Fast convergence but needs derivative
Secant Method:
- x = x - f(x)*(x - x)/(f(x) - f(x))
- Doesnt need derivative, faster than bisection
Pivoting:
- Swapping rows for numerical stability
Ill-conditioned Equations:
- Small changes in coefficients cause large solution changes
4. Interpolation
Lagranges Interpolation:
- Formula: [y (x - x)/(x - x)], j i
- Doesnt require equal spacing
5. Curve Fitting
Linear Fit:
- y = a + bx, uses least squares method
Polynomial Fit:
- y = a + ax + ax + ..., fits complex trends
Exponential Fit:
- y = ae^(bx), transformed as ln(y) = ln(a) + bx for linear fitting