HP-15C Advanced Functions Handbook - Page 101

Description

One-Step Residual Correction

The following program solves the system of equations AX = B for X, then performs one
stage iterative refinement to improve the solution. The program uses four matrices:

Matrix     A          B           C            D
———————————————————————————————————————————————————
Input    System   Right-Hand
         Matrix     Matrix

Output   System   Corrected   Uncorrected   LU Form
         Matrix    Solution    Solution      of A


To use this program:
  1. Dimension matrix A according to the system matrix and store those elements in A.
  2. Dimension matrix B according to the right-hand matrix and store those elements in B.
  3. Press GSB A to calculate the corrected solution in matrix B

Program Resources

Labels

Name Description
 A Residual Correction

Program

Line Display Key Sequence
000
001 42,21,11 f LBL A
002 45,16,11 RCL MATRIX A
003 44,16,14 STO MATRIX D
004 45,16,12 RCL MATRIX B
005 45,16,14 RCL MATRIX D
006 42,26,13 f RESULT C
007 10 ÷
008 42,26,12 f RESULT B
009 42,16, 6 f MATRIX 6
010 45,16,14 RCL MATRIX D
011 10 ÷
012 45,16,13 RCL MATRIX C
013 40 +
014 43 32 g RTN