| To: | yyyyyyyyyyyyyyy@xxxxxxxxxxxxx |
|---|---|
| Subject: | Defect in XSH erf |
| From: | yyyyyyyy@xxxxxxx |
| Date: | Wed, 16 Jul 2003 16:52:24 +0100 (BST) |
Defect report from : Loic Domaigne , personal interest
(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)
@ page 0 line 0 section erf comment {erf}
Problem:
Edition of Specification (Year): 2003
Defect code : 2. Omission
Missing Example.
Action:
Computing the probability for a normal variate
This example shows how to use erf() to compute the probability
that a normal variate assumes a value in the range [x1,x2] with x1<=x2.
#include <math.h>
double
Phi(const double x1,
const double x2
)
{
return ( erf(x2*M_SQRT1_2) - erf(x1*M_SQRT1_2) ) / 2;
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Defect in XSH exp, loic-dev |
|---|---|
| Next by Date: | RE: Defect in XSH exp, Jason Zions |
| Previous by Thread: | Defect in XSH exp, loic-dev |
| Next by Thread: | Bug in TC2-d2 pipe(), mtk-lists |
| Indexes: | [Date] [Thread] [All Lists] |