Post Reply 
Accurate Normal Distribution for the HP67/97
06-30-2016, 11:51 PM (This post was last modified: 07-01-2016 12:00 AM by Paul Dale.)
Post: #8
RE: Accurate Normal Distribution for the HP67/97
Dieter,

You'll need to write a program that creates the locals and which finishes with STOP not RTN.

E.g. to create a 10x10 identity matrix in local registers:
Code:
        LBL A
        LocR 100
        112.1010
        XEQ'M-1'
        STOP

Switch to run mode and XEQ A to run this. You can look at the first few using RCL . 00, RCL .01 etc. But to look at later values you need to use indirect addressing e.g. 167 RCL -> X returns 1 since it is a diagonal element. The first local register is accessed indirectly as register 112. Execute RTN in run mode to free the memory occupied by the locals.

I'd probably put the two 10 long vectors into local registers instead of the large matrix.

Although you can allocate 121 local registers, the matrix code doesn't allow a single matrix to have more than 100 elements.


Pauli
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Accurate Normal Distribution for the HP67/97 - Paul Dale - 06-30-2016 11:51 PM



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