Post Reply 
48/50 Linear System Solver
01-15-2015, 12:17 PM
Post: #13
RE: 48/50 Linear System Solver
(01-14-2015 05:35 PM)Han Wrote:  Let A = [[12.25, 1.25, 4.5],[1.25,12.25,4.5],[4.5,4.5,3]]
Let b = [[-166.2],[157.2],[-3]]

Note that A is singular. On the HP48, with flag -22 SET (infinite -> MAXREAL), I get:

b A / -> x=[[-25.0333...],[4.3666...],[30]]
b A LSQ -> x=[[-14.972727...],[14.42727...],[-.1818...]]

As I said before:
with flag -54 SET, both b A / and the linear solver application return x=[[-25.0333...],[4.3666...],[30]]. In this case, the 48 does not know A is singular - the computed determinant is 1.485e-12, and a result can be calculated using the normal LU decomposition and subsequent solve. Of course, COND returns 3.e15 meaning the result is meaningless.
with flag -54 CLEAR, b A / returns Infinite Result, and the solver app returns the Least Squares solution.

Cheers, Werner

41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
48/50 Linear System Solver - Tim Wessman - 02-13-2014, 01:30 AM
RE: 48/50 Linear System Solver - Dieter - 02-16-2014, 06:00 PM
RE: 48/50 Linear System Solver - Werner - 02-17-2014, 08:18 AM
RE: 48/50 Linear System Solver - Han - 01-14-2015, 05:35 PM
RE: 48/50 Linear System Solver - Werner - 01-15-2015 12:17 PM
RE: 48/50 Linear System Solver - Han - 01-15-2015, 05:35 PM
RE: 48/50 Linear System Solver - Werner - 01-16-2015, 09:52 AM
RE: 48/50 Linear System Solver - Han - 01-16-2015, 01:44 PM
RE: 48/50 Linear System Solver - Gilles - 01-14-2015, 07:59 PM
RE: 48/50 Linear System Solver - Werner - 01-16-2015, 02:15 PM
RE: 48/50 Linear System Solver - Han - 01-16-2015, 04:18 PM



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