Post Reply 
HP 42s Program Normal Distibution
10-22-2024, 05:58 AM
Post: #6
RE: HP 42s Program Normal Distibution
If you don't want to integrate pdf manually, you can omit the menu variable declarations using MVAR:
Code:
00 { 31-Byte Prgm }
01▸LBL "pdf"
02 RCL "x"
03 RCL- "μ"
04 RCL÷ "s"
05 X↑2
06 -2
07 ÷
08 E↑X
09 RCL÷ "s"
10 2
11 PI
12 ×
13 SQRT
14 ÷
15 END

You have to specify both LLIM and ULIM:
Code:
00 { 34-Byte Prgm }
01▸LBL "∫pdf"
02 INPUT "μ"
03 INPUT "s"
04 INPUT "LLIM"
05 INPUT "ULIM"
06 PGMINT "pdf"
07 INTEG "x"
08 END

Example

FIX 06

XEQ "∫pdf"

μ?0.000000

5 R/S

s?1.000000

2 R/S

LLIM?1.000000

7 R/S

ULIM?2.000000

9 R/S

0.135905
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP 42s Program Normal Distibution - Thomas Klemm - 10-22-2024 05:58 AM



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