[WP34S] Register use by functions.


Is there any documentation related to which registers functions like NORML, RAN#, and ISG use internally when called? In particular I use the REG I for using STO->I my results into R00-R99. Sometimes REG I is affected by some program function. REGs J,K seem stable for probability distribution parameters. I am not using complex numbers.


As a rule, internal functions do not make any changes to your state. At least unless that is the whole purpose of the function.

Register I is the complex equivalent of last X (L). Thus, complex operations change I, but nothing else should. J and K hold statistical distribution parameters -- refer to the manual for details as they vary, these are never changed. A, B, C & D are either general purpose or part of the stack. X, Y, Z, T & L are part of the stack and last X.

You three examples in turn:

Norml takes the mean from J, the variance from K and does the appropriate statistical calculation.

RAN# uses special internal state and accesses no registers.

ISG uses the register you give it as an argument and no others.

- Pauli



Many thanks for your detailed answer. I appreciate that very much.

I must be doing something wrong in the program lines.

I assume that you are one of the original inventors of the 34S concept and I want to thank you and the others for this great project. Not only is your concept implementation creating the world's greatest scientific calculator, but I truly believe that the 34S is the world's best business calculator as well. Using the probability distributions and their inverses one can get a better picture of say stock or option prices and strike prices than what a simple deterministic or stock graph will provide. Further I can generate stock data from the inverse cumulative dist. and thus do Monte Carlo simulations which help in wait time studies between low/high stock prices. The 34S gives all this to me faster and wherever I am located. You guys are changing the business world too. The 34S is awesome!




Yes, I'm the P from the device name :-)

I doubt we're changing the business calculator world, we're missing way too much functionality for that.

- Pauli


I have found the best way to debug programs now is to use the emulator with the T flag set (trace) and the HP82240B emulator running. You get a complete trace in all it's glorious details.

I can't image using this with a real printer - the amount of paper I'd go through...



Please take a look to page 20 - it should answer your questions regarding I, J, and K.

Possibly Related Threads...
Thread Author Replies Views Last Post
  [41CL] New Extra Functions version Monte Dalrymple 0 470 11-08-2013, 04:32 PM
Last Post: Monte Dalrymple
  HP Prime: in need of help with defining functions Alberto Candel 14 1,811 10-27-2013, 10:48 AM
Last Post: Alberto Candel
  HP Prime spreadsheet functions SanS 0 987 10-04-2013, 04:23 AM
Last Post: SanS
  Stats functions on the HP34S Nicholas van Stigt 5 863 09-24-2013, 02:45 AM
Last Post: Nick_S
  Trig Functions Howard Owen 11 1,483 09-16-2013, 02:53 PM
Last Post: Fred Lusk
  50g piecewise functions Kurt Fankhauser 6 931 09-15-2013, 08:01 PM
Last Post: Kurt Fankhauser
  Missing functions on the HP Prime!!!??? :-( Namir 6 920 08-22-2013, 08:40 AM
Last Post: Gilles Carpentier
  HP41 Functions Address Table (F.A.T.) Antoine M. Couëtte 6 887 07-21-2013, 02:48 AM
Last Post: Antoine M. Couëtte
  Little curiosity: why the fourth stack register is called "T"? Antlab 34 3,272 07-03-2013, 04:49 PM
Last Post: Walter B
  Trigonometric Functions (HP-17BII) Gerson W. Barbosa 2 693 04-09-2013, 11:57 PM
Last Post: Gerson W. Barbosa

Forum Jump: