Post Reply 
HP 42s Program Normal Distibution
10-21-2024, 10:36 PM
Post: #4
RE: HP 42s Program Normal Distibution
(10-21-2024 09:41 PM)cylurian Wrote:  How would I be able to calculate a CDF with Lower Limits and Upper Limits and not mu = 0 and s = 1.

(10-18-2024 06:51 AM)Thomas Klemm Wrote:  Store \(\mu\) and \(\sigma\) in registers "μ" and "s".

You can also add them as menu variables to the program pdf:
Code:
00 { 40-Byte Prgm }
01▸LBL "pdf"
02 MVAR "x"
03 MVAR "μ"
04 MVAR "s"
05 RCL "x"
06 RCL- "μ"
07 RCL÷ "s"
08 X↑2
09 -2
10 ÷
11 E↑X
12 RCL÷ "s"
13 2
14 PI
15 ×
16 SQRT
17 ÷
18 END

Example

\(\mu=5\)
\(\sigma=2\)

\(\int_7^9 pdf(x) \;\mathrm{d}x\)

FIX 06

∫f(x)

Select ∫f(x) Program
pdf

Set Vars; Select ∫var
μ=5.000000
s=2.000000
x

LLIM=7.000000
ULIM=9.000000
ACC=0.000001

∫=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-21-2024 10:36 PM



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