The Museum of HP Calculators

HP Forum Archive 14

[ Return to Index | Top of Index ]

Normal Distribution for HP 17B, 17BII+ posted
Message #1 Posted by Bob Wang on 2 Mar 2004, 10:45 p.m.

I've just posted some normal distribution programs for the 17B and 17BII+ which reportedly lack the L() and G() functions.

http://home.comcast.net/~bobwang/index.htm

Feedback, suggestions, corrections, etc. are welcomed.

Thanks, Bob

bobwang@comcast.net

      
F=ERF(X)
Message #2 Posted by Tizedes Csaba on 3 Mar 2004, 6:18 p.m.,
in response to message #1 by Bob Wang

Hello, if you like Taylor-series, try this:

ERF:F=2/SQRT(2*PI)*SUMMA(I:0:N:1:(-1)^I*X^(2*I+1)/((2*I+1)*2^I*FACT(I)))

This calculates Gaussian 'error-integral' between -x and x.

Some useful thing:

  • F>=0 and x>=0 (always)
  • if you want to solve for X, use the following method: Xmin [X] Xmax [X] [X]
  • if F<0.683 (68.3%) then use: 0 [X] 1 [X] [X]
  • if 0.683<F<0.955 (68.3%...95.5%) then use: 1 [X] 2 [X] [X]
  • try to use some N's: with N=19 in x=-3...3 works perfectly with five significant digits

Csaba

            
Re: F=ERF(X)
Message #3 Posted by Bob Wang on 3 Mar 2004, 11:15 p.m.,
in response to message #2 by Tizedes Csaba

Thanks, I'll try out the Taylor series

Bob

            
Re: F=ERF(X)
Message #4 Posted by Bob Wang on 4 Mar 2004, 8:30 p.m.,
in response to message #2 by Tizedes Csaba

Csaba:

Thanks for the reference to Taylor Series. I've included a new program that is accurate to 3E-12 in the -3 to 3 range.

http://home.comcast.net/~bobwang/index.htm

Bob

      
L() and G() functions
Message #5 Posted by Max on 4 Mar 2004, 9:53 p.m.,
in response to message #1 by Bob Wang

Quote:
I've just posted some normal distribution programs for the 17B and 17BII+ which reportedly lack the L() and G() functions.

The older algebraic-only 17B supports LET-GET alright.

            
Re: L() and G() functions
Message #6 Posted by Bob Wang on 4 Mar 2004, 10:44 p.m.,
in response to message #5 by Max

Thanks Max for pointing that out. I don't have a 17B, nor a 17BII+ to test, so I have to rely on "word-of-mouth".

I've updated the documents to reflect the fact that the 17B does in fact support L() and G().

Bob


[ Return to Index | Top of Index ]

Go back to the main exhibit hall