Compilation: javac Gaussian.java
Execution: java Gaussian x mu sigma
Function to compute the Gaussian pdf (probability density function)
and the Gaussian cdf (cumulative density function)
% java Gaussian 820 1019 209
0.17050966869132111
% java Gaussian 1500 1019 209
0.9893164837383883
% java Gaussian 1500 1025 231
0.9801220907365489
The approximation is accurate to absolute error less than 8 * 10^(-16).