compute a least squares solution to a set of equations
LeastSquares(A, B, options)
Matrix or set
column Vector or set of variables
(optional) parameters; for a complete list, see LinearAlgebra[LeastSquares]
For Matrix A and Vector B, the LeastSquares(A, B) command returns a Vector that best satisfies the condition A·x is approximately equal to B, in the least squares sense. The result that is returned is the Vector x which minimizes Norm(A . x - B, 2).
Parameter A can also be a set of equations that describe the linear least squares problem. In this case, B is the set of variables in which the equations in A occur.
Download Help Document
What kind of issue would you like to report? (Optional)