Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Student[LinearAlgebra][LeastSquares] - compute a least squares solution to a set of equations
Calling Sequence
LeastSquares(A, B, options)
Parameters
A
-
Matrix or set
B
column Vector or set of variables
options
(optional) parameters; for a complete list, see LinearAlgebra[LeastSquares]
Description
For Matrix A and Vector B, the LeastSquares(A, B) command returns a Vector that best satisfies the condition 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.
Examples
See Also
LinearAlgebra[LeastSquares], Student[LinearAlgebra], Student[LinearAlgebra][LinearSolve], Student[LinearAlgebra][Norm]
Download Help Document