The Museum of HP Calculators

HP Forum Archive 18

[ Return to Index | Top of Index ]

33s - programming question
Message #1 Posted by Frank Rottgardt on 15 May 2008, 4:22 p.m.

Is there a simple way to get access to the content of the data registers holding the values for statistic calculation? (data you enter with Sigma +)I do not mean the six registers 28 - 32, but the list of values representing the population or sample.

I need to calculate "Sigma x^3" and the default statistic functions only give me "Sigma x^2". Is it possible to program a loop starting at i=1 to i=n where I can read the list content value by value, raising it to 3 and STO+ in a variable representing "Sigma x^3" when the loop-routine reached its end?

I know I could write an input-loop to enter the sample values not making use of "Sigma+" to get around the problem. But I would like to stick to the generic statistic input routine with the "Sigma+" which enables me to do further calculations with the "onboard" statistic functions.

      
Re: 33s - programming question
Message #2 Posted by Frank Rottgardt on 15 May 2008, 4:30 p.m.,
in response to message #1 by Frank Rottgardt

Maybe writing an own input-routine where I can enter the sample-value, making the x^3 and STO+ to get Sigma x^3 and in parallel add the entered sample-value x to the statistc-matrix with a programmed "Sigma+" ?

      
Re: 33s - programming question
Message #3 Posted by Stefan Vorkoetter on 15 May 2008, 4:52 p.m.,
in response to message #1 by Frank Rottgardt

Like virtually all calculators, the HP 33s doesn't actually store the entered data anywhere. All it does is accumulate the various sums in the statistics registers.

Writing your own input routine, something like this, is probably the best way to go:

LBL S
ENTER
3
y^x
STO +K
RDN
Sigma+
RTN

This is similar to what I do in my curve fitting program for the HP 35s, where I need to accumulate not only the normal six statistics values, but also:

Sigma ln(x)
Sigma ln(y)
Sigma x ln(y)
Sigma y ln(x)
Sigma ln(x)^2
Sigma ln(y)^2
Sigma ln(x) ln(y)

Stefan

            
Re: 33s - programming question
Message #4 Posted by Frank Rottgardt on 15 May 2008, 5:00 p.m.,
in response to message #3 by Stefan Vorkoetter

Thanks, Stefan

seems to be plain and simple.

            
Re: 33s - programming question
Message #5 Posted by Don Shepherd on 15 May 2008, 8:27 p.m.,
in response to message #3 by Stefan Vorkoetter

Quote:
Like virtually all calculators, the HP 33s doesn't actually store the entered data anywhere. All it does is accumulate the various sums in the statistics registers.
The 17bII+ acutally does store the data items in a SUM list, and the contents of the SUM list is accessible within a Solver equation. And it does offer the standard statistical calculations (although I have never used them).


[ Return to Index | Top of Index ]

Go back to the main exhibit hall