| 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> |
|---|---|---|
| ||
| Previous by Date: | Re: Defect in XSH exp, Clive D.W. Feather |
|---|---|
| Next by Date: | Re: Defect in XSH exp, Loic Domaigne |
| Previous by Thread: | Re: Defect in XSH exp (revised I), Loic Domaigne |
| Next by Thread: | Re: Defect in XSH exp (revised II), Loic Domaigne |
| Indexes: | [Date] [Thread] [All Lists] |