Post Reply 
(50g) Normal Distribution
12-15-2018, 03:03 PM (This post was last modified: 12-15-2018 04:44 PM by Albert Chan.)
Post: #22
RE: (50g) Normal Distribution
(12-08-2018 07:13 PM)John Keith Wrote:  ... the idea of using 1-ln(sqrt(2*pi)) proved to be less accurate on the HP 50 so I stuck with dividing by sqrt(2*pi) instead.

For 12-digits calculator, this constant is better, relative error ~ 1.25e-18

k = e-0.88453 / √(2 Pi) = 0.164726 536723 000000 206 ... => 0.164726 536723

Z(x) = exp(0.88453 - B) exp(B - I²/2 - I F - F²/2) * k

Examples:

Z(20.33333 33333) = exp(0.88453 - 413/2) exp(-0.222222 221544) * 0.164726 536723 = 6.64644 887123 e-91

Z(16.4285 714286) = exp(0.88453 - 269/2) exp(-0.448979 592306) * 0.164726 536723 = 9.84720 298683 e-60

edit: 1 - ln(sqrt(2*pi)) constant had a flaw I missed. exp(-1-B) term might underflow to 0.0
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(50g) Normal Distribution - John Keith - 12-03-2018, 04:20 PM
RE: (50g) Normal Distribution - Dieter - 12-03-2018, 07:05 PM
RE: (50g) Normal Distribution - John Keith - 12-03-2018, 08:45 PM
RE: (50g) Normal Distribution - Dieter - 12-03-2018, 10:18 PM
RE: (50g) Normal Distribution - John Keith - 12-03-2018, 10:59 PM
RE: (50g) Normal Distribution - John Keith - 12-04-2018, 08:54 PM
RE: (50g) Normal Distribution - Dieter - 12-04-2018, 09:48 PM
RE: (50g) Normal Distribution - Dieter - 12-05-2018, 08:49 PM
RE: (50g) Normal Distribution - John Keith - 12-06-2018, 02:58 PM
RE: (50g) Normal Distribution - Dieter - 12-06-2018, 11:08 PM
RE: (50g) Normal Distribution - John Keith - 12-07-2018, 11:21 PM
RE: (50g) Normal Distribution - Dieter - 12-06-2018, 10:54 PM
RE: (50g) Normal Distribution - John Keith - 12-08-2018, 07:13 PM
RE: (50g) Normal Distribution - Albert Chan - 12-15-2018 03:03 PM
RE: (50g) Normal Distribution - Dieter - 12-08-2018, 09:18 PM
RE: (50g) Normal Distribution - John Keith - 12-08-2018, 09:28 PM
RE: (50g) Normal Distribution - John Keith - 01-26-2019, 10:01 PM
RE: (50g) Normal Distribution - pier4r - 01-26-2019, 10:12 PM



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