The Museum of HP Calculators


3x3 Determinant Evaluation for HP25

This program was written by Walter Gray and is used here by permission.

This program is supplied without representation or warranty of any kind. The author and The Museum of HP Calculators therefore assume no responsibility and shall have no liability, consequential or otherwise, of any kind arising from the use of this program material or any part thereof.

Overview

determinant is written  |a b c|
                        |d e f|
                        |g h i|
and terms are entered in sequence a,b,c,d,e,f,g,h,i

Instructions

Step

Instructions

Input Data/Units

Keys

Output Data/Units

1

Enter program

     

2

Enter the matrix

a

f PRGM R/S 

 

 

 

b

R/S

 

   

c

R/S

 
   

d

R/S

 
   

e

R/S

 
   

f

R/S

 
   

g

R/S

 

 

 

h

R/S

 
   

i

R/S

det

4

For new case, go to step 2

 

 

 

Example

|1 2 3|
|3 4 4| = -2
|5 6 6|

The Program

LINE  KEYS
 00
 01   STO 2     ; a in x reg
 02   STO 5     
 03   R/S          
 04   STO 6     ; b in x reg
 05   STO 3     
 06   R/S          
 07   STO 7     ; c in x reg
 08   STO 4     
 09   R/S          
 10   STO x 6   ; d in x reg  
 11   STO x 4     
 12   R/S          
 13   STO x 5   ; e in x reg
 14   STO x 7     
 15   RCL 6     
 16   STO - 5     
 17   R/S          
 18   STO x 2   ; f in x reg  
 19   STO x 3     
 20   RCL 2     
 21   STO - 4     
 22   RCL 7     
 23   STO - 3     
 24   R/S          
 25   STO x 3   ; g in x reg  
 26   R/S          
 27   STO x 4   ; h in x reg  
 28   R/S          
 29   STO x 5   ; i in x reg  
 30   RCL 5     
 31   STO 0     
 32   RCL 3     
 33   STO + 0     
 34   RCL 4     
 35   STO + 0     
 36   RCL 0     
 37   gto 00    ; display results

Go back to the software library
Go back to the main exhibit hall