home *** CD-ROM | disk | FTP | other *** search
- stexpd (a,x,df,cf)
-
- /*this subroutine computes the density function and cumlative*/
- /*distribution of exponentional distribution of the form*/
- /*df = a*exp(-a*x) for any fixed constant a greater than zero and*/
- /*any variable x greater than or equal to zero.*/
-
- float a,x,*df,*cf;
-
- {
-
- float ax;
- extern double exp();
-
- ax = -a*x;
- *df = a*exp(ax);
- *cf = 1.-exp(ax);
-
- }
-