Self-contained C library implementing Normal distribution related functions:
/* Cumulative distribution function of the Normal distribution.
*/
double cdf(double x);
/* Log of the cumulative distribution function of the Normal distribution.
*/
double logcdf(double x);
/* Log of the probability distribution function of the Normal distribution.
*/
double logpdf(double x);
Include normal.h
in your C/C++ project.