Email List: Xaustin-review-lX
[All Lists]

Re: Defect in XSH exp (revised I)

To: Loic Domaigne <yyyyyyyy@xxxxxxx>
Subject: Re: Defect in XSH exp (revised I)
From: Dragan Cvetkovic <yyyyyy@xxxxxxxxxxx>
Date: Thu, 17 Jul 2003 12:41:14 -0400 (EDT)
Cc: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
On Thu, 17 Jul 2003, Loic Domaigne wrote:

> Hi, 
> 
> The revised version for the exp() example.
> 
> Loic.
> ------------------------------------------------------------------------
> 
> Computing the density of the standard normal distribution
> 
> This function shows a straightforward implementation for
> the density of the standard normal distribution using exp()
> 
> double
> normal_density (double  x
>               )
> { 
>   return exp(-x*x/2) / sqrt (2*M_PI);
> }

I think you will need to #include <math.h>.

Bye, Dragan

-- 
Dr Dragan Cvetkovic, Soliton Inc., yyyyyy@xxxxxxxxxxx

To be or not to be is true. G. Boole    No it isn't.  L. E. J. Brouwer

<Prev in Thread] Current Thread [Next in Thread>