11,484,162 members (69,178 online)

# Algorithms

 Re: Inverse of NORMSDIST function Paul Conrad23-Jul-08 13:18 Paul Conrad 23-Jul-08 13:18
 NORMSDIST function sumit70342-Jul-08 23:28 sumit7034 2-Jul-08 23:28
 I know, CPallini2-Jul-08 23:51 CPallini 2-Jul-08 23:51
 Re: I know, sumit70343-Jul-08 0:50 sumit7034 3-Jul-08 0:50
 Re: I know, CPallini3-Jul-08 0:54 CPallini 3-Jul-08 0:54
 Re: I know, sumit70343-Jul-08 1:04 sumit7034 3-Jul-08 1:04
 Re: I know, CPallini3-Jul-08 1:11 CPallini 3-Jul-08 1:11
 Re: I know, sumit70343-Jul-08 1:28 sumit7034 3-Jul-08 1:28
 Re: I know, cp98763-Jul-08 1:52 cp9876 3-Jul-08 1:52
 Re: I know, CPallini3-Jul-08 1:56 CPallini 3-Jul-08 1:56
 Re: I know, sumit70343-Jul-08 2:36 sumit7034 3-Jul-08 2:36
 Re: I know, Paul Conrad3-Jul-08 19:32 Paul Conrad 3-Jul-08 19:32
 Re: I know, CPallini3-Jul-08 1:53 CPallini 3-Jul-08 1:53
 Re: NORMSDIST function 73Zeppelin3-Jul-08 3:11 73Zeppelin 3-Jul-08 3:11
 Implementation 1: ```// returns the cumulative normal distribution function (CNDF) // for a standard normal: N(0,1) double CNDF(double x) { int neg = (x < 0); if ( neg ) x *= -1;   double k(1/(1+0.2316419*x)); double y=((((1.330274429*k-1.821255978)*k+1.781477937)*k-0.356563782)*k+0.319381530)*k; y = 1.0 - 0.398942280401*exp(-0.5*x*x)*y; return (1-neg)*y + neg*(1-y); }``` Implementation 2 ```// another implementation of the CNDF // for a standard normal: N(0,1) double CumNorm(double x) { // protect against overflow if (x > 6.0) return 1.0; if (x < -6.0) return 0.0;   double b1 = 0.31938153; double b2 = -0.356563782; double b3 = 1.781477937; double b4 = -1.821255978; double b5 = 1.330274429; double p = 0.2316419; double c2 = 0.3989423;   double a = fabs(x); double t = 1.0 / (1.0 + a * p); double b = c2*exp((-x)*(x/2.0)); double n = ((((b5*t+b4)*t+b3)*t+b2)*t+b1)*t; n = 1.0-b*n; if ( x < 0.0 ) n = 1.0 - n; return n; }``` I'm the ocean. I'm a giant undertow.
 Re: NORMSDIST function CPallini3-Jul-08 3:29 CPallini 3-Jul-08 3:29
 Re: NORMSDIST function 73Zeppelin3-Jul-08 4:19 73Zeppelin 3-Jul-08 4:19
 Re: NORMSDIST function sumit70343-Jul-08 3:47 sumit7034 3-Jul-08 3:47
 Re: NORMSDIST function Member 82494621-Dec-11 0:54 Member 824946 21-Dec-11 0:54
 The six rightmost non-zero digits of 1000000! Rod Gowdy2-Jul-08 5:50 Rod Gowdy 2-Jul-08 5:50
 Re: The six rightmost non-zero digits of 1000000! [modified] Robert.C.Cartaino2-Jul-08 7:33 Robert.C.Cartaino 2-Jul-08 7:33
 Re: The six rightmost non-zero digits of 1000000! Rod Gowdy3-Jul-08 4:42 Rod Gowdy 3-Jul-08 4:42
 Re: The six rightmost non-zero digits of 1000000! Robert.C.Cartaino3-Jul-08 11:06 Robert.C.Cartaino 3-Jul-08 11:06
 Specify numbers as product of Primes? Ian Uy25-Jun-08 20:37 Ian Uy 25-Jun-08 20:37
 Re: Specify numbers as product of Primes? cp987625-Jun-08 22:32 cp9876 25-Jun-08 22:32
 Re: Specify numbers as product of Primes? Ian Uy26-Jun-08 1:42 Ian Uy 26-Jun-08 1:42
 Re: Specify numbers as product of Primes? Robert.C.Cartaino26-Jun-08 5:48 Robert.C.Cartaino 26-Jun-08 5:48
 Re: Specify numbers as product of Primes? Ian Uy26-Jun-08 5:50 Ian Uy 26-Jun-08 5:50
 Re: Specify numbers as product of Primes? The Developer8-Aug-08 8:03 The Developer 8-Aug-08 8:03
 Re: Specify numbers as product of Primes? Ian Uy26-Jun-08 7:28 Ian Uy 26-Jun-08 7:28
 Re: Specify numbers as product of Primes? Paul Conrad28-Jun-08 6:44 Paul Conrad 28-Jun-08 6:44
 Re: Specify numbers as product of Primes? Ian Uy28-Jun-08 6:46 Ian Uy 28-Jun-08 6:46
 Re: Specify numbers as product of Primes? Paul Conrad28-Jun-08 7:11 Paul Conrad 28-Jun-08 7:11
 Re: Specify numbers as product of Primes? Ravi Bhavnani8-Aug-08 8:16 Ravi Bhavnani 8-Aug-08 8:16
 Re: Specify numbers as product of Primes? cp987628-Jun-08 21:27 cp9876 28-Jun-08 21:27
 Re: Specify numbers as product of Primes? Luc Pattyn29-Jun-08 3:42 Luc Pattyn 29-Jun-08 3:42
 Re: Specify numbers as product of Primes? MarkBrock27-Jun-08 19:46 MarkBrock 27-Jun-08 19:46
 Re: Specify numbers as product of Primes? Paul Conrad28-Jun-08 6:42 Paul Conrad 28-Jun-08 6:42
 Re: Specify numbers as product of Primes? ChandraRam2-Jul-08 23:49 ChandraRam 2-Jul-08 23:49
 Re: Specify numbers as product of Primes? MarkBrock3-Jul-08 0:06 MarkBrock 3-Jul-08 0:06
 Re: Specify numbers as product of Primes? Member 419459326-Jun-08 9:19 Member 4194593 26-Jun-08 9:19
 Re: Specify numbers as product of Primes? Robert.C.Cartaino26-Jun-08 9:47 Robert.C.Cartaino 26-Jun-08 9:47
 Re: Specify numbers as product of Primes? Ian Uy26-Jun-08 18:51 Ian Uy 26-Jun-08 18:51
 Re: Specify numbers as product of Primes? cp987629-Jun-08 15:57 cp9876 29-Jun-08 15:57
 Re: Specify numbers as product of Primes? Arash Partow29-Jun-08 1:48 Arash Partow 29-Jun-08 1:48
 Re: Specify numbers as product of Primes? [modified] cp987629-Jun-08 4:53 cp9876 29-Jun-08 4:53
 Re: Specify numbers as product of Primes? Luc Pattyn29-Jun-08 5:40 Luc Pattyn 29-Jun-08 5:40
 Re: Specify numbers as product of Primes? cp987629-Jun-08 15:47 cp9876 29-Jun-08 15:47
 Re: Specify numbers as product of Primes? Arash Partow30-Jun-08 3:54 Arash Partow 30-Jun-08 3:54
 Re: Specify numbers as product of Primes? cp987630-Jun-08 4:18 cp9876 30-Jun-08 4:18
 Re: Specify numbers as product of Primes? Arash Partow30-Jun-08 5:27 Arash Partow 30-Jun-08 5:27
 Last Visit: 31-Dec-99 19:00     Last Update: 25-May-15 8:03 Refresh « Prev1...67686970717273747576 Next »

General    News    Suggestion    Question    Bug    Answer    Joke    Rant    Admin

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 25 May 2015