M Library Functions
To use M library functions, first load them, for example, in M: load cond det
or on the command-line: m cond.m det.m
N null space, B = N(A)
charpoly characteristic polynomial
chol Cholesky decomposition, G = chol(A)
cond condition number in 2-norm, r = cond(A)
det determinant, r = det(A)
fact factorial, r = fact(n)
fib fib(n) prints the Fibbonaci sequence up to n
integrate integrate function over an interval
linear linear scale of n points, X = linear(xmin,xmax,n)
lu LU reduction, lu(A,L,U)
lup LU reduction with pivoting, lup(A,L,U,p)
norm1 1-norm, r = norm1(A)
norm2 2-norm, r = norm2(A)
norminf infinite-norm, r = norminf(A)
pinv pseudo-inverse, B = pinv(A)
polymul polynomial multiplication
polyval polynomial evaluation
qroots quadratic roots, R = qroots(a,b,c)
qrp QR decomposition with pivoting, r = qrp(A,Q,R,p)
rref reduced row echelon form, R = rref(A)
solve solve LUx=b, x = solve(L,U,b)