Numerical Methods Formula Sheet
Numerical Methods Formula Sheet
COEB223 / MATB324
Stopping criterion:
Terminate computation when a < s where s is the desired percent relative error
Taylor Series
Taylor series expansion
(
( )
( )
( )
( )(
( )
where remainder
(
)(
or
Error propagation
For n independent variables x1, x2, , xn having errors ,
, ,
Page 1 of 8
Formulation
Bisection
( )(
( )
False Position
)
)
If ( )
( )
set
If ( )
( )
set
If ( )
( )
set
If ( )
( )
set
( )
( )
Newton Raphson
Secant
( )(
(
)
)
( )
LU decomposition
Back Substitution
Decomposition
]{
{ }
]{ }
Forward Substitution
Page 2 of 8
{ }
Gauss-Seidel method
}
With relaxation,
(
Formulation
Errors
where
)
( )
where:
(
Polynomial
Regression
where
)
{
]
Page 3 of 8
where:
(
Multiple
Linear
Regression
where
where:
(
by differentiating Sr with respect to each coefficients
and setting the partial derivatives equal to zero, we
have:
Newtons
divided
difference
interpolating
polynomial
)
(
(
)(
)(
)(
where
( )
[
[
[
Lagrange
interpolating
polynomial
( )
]
]
( ) ( )
where,
( )
Page 4 of 8
)
)
Formulation
First Derivative:
(
( )
( )
( )
)
( )
(
First Derivative:
( )
( )
( )
( )
)
(
( )
Errors
( )
)
(
)
(
First Derivative
(
( )
( )
)
(
B. Numerical Integration
Method
Formulation
Trapezoidal rule
Multiple-application
trapezoidal rule
( )
( )
( ( )
Page 5 of 8
( )
))
Multiple-application
Simpsons 1/3 rule
Gauss Quadrature
( )
( )
( )
( ( )
( )
( )
( )
( )
( )
( )
( )
Gauss-Legendre
For two-point Gauss-Legendre:
Change of variables:
(
Page 6 of 8
( )
))
Formulation
Eulers First-Order RK
(
(
(
)
)
Page 7 of 8
Formulation
Elliptic PDEs
Liebmanns Method
Explicit Method
(
Crank-Nicolson Method
)
(
Page 8 of 8