Source Code Archive

 

An Introduction to Numerical Analysis

with Applications to the Physical,

Natural and Social Sciences

 

 

Matlab m-Files: Systems of Equations

 

 

gauss_elim.m

Gaussian elimination with back substitution (this is a demonstration routine which does not incorporate any pivoting strategies)

LUfactor.m

determine an LU decomposition for a given matrix (performs partial pivoting)

LUsolve.m

companion routine to LUfactor

given an LU decomposition and a right-hand side vector, performs forward and backward substitution to determine the solution to the linear system

tridiagonal.m

solve a system of linear equations which has a tridiagonal coefficient matrix

jacobi.m

perform Jacobi method iterations

gauss_seidel.m

perform Gauss-Seidel iterations

sor.m

perform SOR iterations

conj_grad.m

conjugate gradient method

newton_sys.m

Newton's method for a system of equations

broyden.m

Broyden's method for a system of equations