Numerical Analysis Algorithm