$$\require{cancel}$$

# 1.17: 1.17- Frequently-needed Numerical Procedures

• • Contributed by Jeremy Tatum
• Emeritus Professor (Physics & Astronomy) at University of Victoria

Solve cubic Equation
Solve quintic Equation
Solve $$f(x) = 0$$ by Newton-Raphson
Solve $$f(x , y) = 0 \ , \ g(x , y) = 0$$ by Newton-Raphson
Tabulate $$y = f(x)$$
Tabulate $$y = f(x , a)$$
Fit least-squares straight line to data
Fit least-squares cubic Equation to data
Solve two simultaneous linear Equations
Solve three simultaneous linear Equations
Solve four simultaneous linear Equations
Solve $$N (>4)$$ simultaneous linear Equations in two, three or four unknowns by least squares
Multiply column vector by square matrix
Invert matrix
Diagonalize matrix
Find eigenvectors and eigenvalues of matrix
Test matrix for orthogonality
Evaluate determinant
Convert between rectangular and polar coordinates
Convert between rectangular and spherical coordinates
Convert between direction cosines and Euler angles
Fit a conic section to five points
Numerical integration by Simpson’s rule
Calculate $$LS$$-coupling line strengths
Convert between relativity factors such as $$\gamma = 1/\sqrt{1-\beta^2}$$