Post Reply 
Integral in solve on HP 42S?
02-26-2019, 09:29 AM
Post: #13
RE: Integral in solve on HP 42S?
This is how I did the calculation for Normal distribution.

First set accuracy by entering number of decimal digits accuracy required, eg

4

then activate FXACC

Code:
0.     { 21-Byte Prgm }
1.    ►LBL "FXACC"
2.     FIX IND ST X
3.     +/-
4.     10^X
5.     STO "ACC"
6.     CLX
7.     LASTX
8.     +/-
9.     END

to set accuracy to 0.0001

To find probability from Z value, enter Z & activate Z→P,

& to find Z value , enter P & activate P→Z.

Code:
0.     { 26-Byte Prgm }
1.    ►LBL "ΣDPREP"
2.     STO "ULIM"
3.     CLX
4.     STO "LLIM"
5.     INTEG "x"
6.     END

0.     { 96-Byte Prgm }
1.    ►LBL "NPDF"
2.     RCL "x"
3.     X^2
4.     -2
5.     ÷
6.     E^X
7.     RTN
8.    ►LBL "Z→P"
9.     PGMINT "NPDF"
10.    ►LBL 00
11.     XEQ "ΣDPREP"
12.     PI
13.     RCL+ ST X
14.     SQRT
15.     ÷
16.     0.5
17.     X<>Y
18.     -
19.     RTN
20.    ►LBL "?Z"
21.     RCL "z"
22.     XEQ 00
23.     RCL- 00
24.     RTN
25.    ►LBL "P→Z"
26.     PGMINT "NPDF"
27.     STO 00
28.     PGMSLV "?Z"
29.     4
30.     STO "z"
31.     SIGN
32.     SOLVE "z"
33.     END
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Integral in solve on HP 42S? - lrdheat - 02-24-2019, 06:29 PM
RE: Integral in solve on HP 42S? - Werner - 02-25-2019, 07:43 AM
RE: Integral in solve on HP 42S? - lrdheat - 02-24-2019, 08:15 PM
RE: Integral in solve on HP 42S? - Werner - 02-26-2019, 07:41 AM
RE: Integral in solve on HP 42S? - lrdheat - 02-26-2019, 03:15 AM
RE: Integral in solve on HP 42S? - Gerald H - 02-26-2019 09:29 AM



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