linalg[leastsqrs] - least-squares solution of equations
|
Calling Sequence
|
|
leastsqrs(A, b)
leastsqrs(S, v)
|
|
Parameters
|
|
A
|
-
|
matrix
|
b
|
-
|
vector
|
S
|
-
|
set of equations or expressions
|
v
|
-
|
set of names
|
|
|
|
|
Description
|
|
•
|
The call leastsqrs(A, b) returns the vector that best satisfies in the least-squares sense. The result returned is the vector x which minimizes .
|
•
|
The call leastsqrs(S, v) finds the values for the variables in v which minimize the equations or expressions in S in the least-squares sense. The result returned is a set of equations whose left-hand sides are from v.
|
•
|
For the linear case, if the third optional argument is 'optimize', the routine will find the optimal least square solution (i.e. the vector x with being the smallest). At present, the matrix entries must be rationals.
|
•
|
The command with(linalg,leastsqrs) allows the use of the abbreviated form of this command.
|
|
|
Download Help Document
Was this information helpful?