Least square method

 

..

linefit() can solve the system of equations with the least square method.


A
1 [[1,-2, 3],[2,3,4],[3,5,7]]
2 [-10,5,7]
3 =linefit(A1,A2)

A1 Input the coefficient matrix

A2 Input Y

A3 Solve the equations, return..

..