| To: | yyyyyyyyyyyyyyy@xxxxxxxxxxxxx |
|---|---|
| Subject: | Defect in XSH exp |
| From: | yyyyyyyy@xxxxxxx |
| Date: | Wed, 16 Jul 2003 16:18:18 +0100 (BST) |
Defect report from : Loic Domaigne , personal interest
(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)
@ page 0 line 0 section exp comment {exp}
Problem:
Edition of Specification (Year): 2003
Defect code : 2. Omission
Missing Example.
Action:
Computing the density function of the standard normal distribution
This example shows a possible implementation using exp()
for computing the density function of the standard normal distribution.
#include <math.h>
double
normal_density (double x
)
{
static double c = 0.39894228040143267794; /* 1.0/sqrt(2*M_PI) */
return c*exp(-x*x/2);
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Defect in XSH fabs, loic-dev |
|---|---|
| Next by Date: | Defect in XSH erf, loic-dev |
| Previous by Thread: | Defect in XSH fabs, loic-dev |
| Next by Thread: | Re: Defect in XSH exp, Clive D.W. Feather |
| Indexes: | [Date] [Thread] [All Lists] |