LinSolve Syntax and Documentation

11162016, 10:59 PM
Post: #1




LinSolve Syntax and Documentation
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?


11162016, 11:39 PM
Post: #2




RE: LinSolve Syntax and Documentation
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]) 

11172016, 01:24 AM
Post: #3




RE: LinSolve Syntax and Documentation
Thanks for the response. Much appreciated. Slowly getting my head around the system.


11172016, 02:56 AM
(This post was last modified: 11172016 03:12 AM by toshk.)
Post: #4




RE: LinSolve Syntax and Documentation
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. 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)