.BG
.VE $Header: /usr3/s/current/s/.help/RCS/solve,v 1.2 83/12/30 19:34:37 rab Exp $
.FN solve
.TL
solve: Solve Linear Equations and Invert Matrices
.CS
solve(a, b)
.PP
.AG a
matrix of coefficients.  Must be square and non-singular.
.AG b
optional matrix of coefficients.  If `b' is missing, the
inverse of matrix `a' is returned.
.RT
the solution `x' to the system of equations `a %* x = b'.
.EX
ainv <- solve(a)    #invert a
.KW array*
.KW linear algebra
.KW algebra
.WR
