(50g) Normal Distribution
|
12-06-2018, 10:54 PM
Post: #14
|
|||
|
|||
RE: (50g) Normal Distribution
(12-06-2018 08:30 PM)Albert Chan Wrote: Using lrint() and move factor √(2 pi) inside Exp reduce error somewhat: What does this lrint() function do, and what programming language are we talking about in the first place? (12-06-2018 08:30 PM)Albert Chan Wrote: const double k = 0.9189385332046728; /* ln(sqrt(2 pi)) */ That's a border case – ln(sqrt(2*pi)) does not round very well to 16 decimals. The exact value is 0,91893 85332 04672 74178... Maybe one has to find out which decimal value is closer when the binary representation is considered. ;-) Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)