HP Forums

Full Version: LinSolve Syntax and Documentation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
There is a function "linsolve" (aka LinSolve) referenced both in the user guide and the system "help" system. While there are alternative functions (Solve2x2 and Solve3x3) that work as documented, LinSolve does not seem to work as intended. See the attached images, Namely the "User Guide", the system "Help" and a screen shot showing my attempts at marking the function work. Have I missed something here?

[attachment=4150]
[attachment=4151]
[attachment=4152]
linsolve and LinSolve are two different functions with different syntax.

linsolve is a CAS function while LinSolve is a function of the Linear Solver application.

If the Linear Solver is the active application you can call directly: LinSolve([[1,5,8],[2,6,9]]), otherwise you need to use the full name: Linear_Solver.LinSolve([[1,5,8],[2,6,9]]).

In CAS mode the syntax for linsolve is: linsolve([x+5*y=8, 2*x+6*y=9],[x,y])
Thanks for the response. Much appreciated. Slowly getting my head around the system.
both functions are more alike ... than unlike, if you remove the masking by hp.

LinSolve([[1,5,8],[2,6,9]]) same as
linsolve([[1,5],[2,6]],[[8],[9]]) same as
LSQ([[1,5],[2,6]],[[8],[9]]) same as using other matrix factorization;(svd, QR, and etc)

svd is more robust in solving linear systems of equations:(with ill condition matrices).
depending on the matrix condition feel free to use any.
Reference URL's