LeastSquares
LeastSquares[m,b] finds an x that solves the linear least-squares problem for the matrix equation m.x==b.
LeastSquares[a,b] finds an x that solves the linear least-squares problem for the array equation a.x==b.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.