33s - programming question
#1

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.

#2

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+" ?

#3

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

#4

Thanks, Stefan

seems to be plain and simple.

#5

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).


Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple? programming question [WP34S] Shawn Gibson 3 1,414 03-15-2013, 11:56 AM
Last Post: Didier Lachieze
  WP-34S Programming Question Matt Agajanian 2 1,220 08-04-2012, 02:04 PM
Last Post: Matt Agajanian
  WP 34S programming question Nigel J Dowrick 35 7,974 04-10-2012, 02:23 AM
Last Post: Walter B
  15C programming question Eric Zoob 7 2,155 03-28-2012, 03:14 PM
Last Post: C.Ret
  Question about programming the HP-71B Namir 27 5,699 11-28-2010, 01:50 PM
Last Post: Egan Ford
  question on 12c programming Don Shepherd 2 1,131 12-24-2008, 06:33 PM
Last Post: Egan Ford
  17bII programming question Dewdman42 28 6,073 10-07-2008, 11:33 PM
Last Post: Dewdman42
  U Watch programming question.. Geoff Quickfall 12 2,852 06-07-2008, 05:57 PM
Last Post: Geoff Quickfall
  50G Programming question Roger King 5 1,717 12-11-2007, 06:02 PM
Last Post: James M. Prange (Michigan)
  RPL Programming question Namir 3 1,192 09-18-2007, 08:04 PM
Last Post: Namir

Forum Jump: