/* nag_bivariate_normal_dist(g01hac) Example Program * * Copyright 1990 Numerical Algorithms Group. * * Mark 1, 1990. */ #include #include #include #include int main(void) { double prob, rho, x, y; /* Skip heading in data file */ Vscanf("%*[^\n]"); Vprintf("g01hac Example Program Results\n"); Vprintf(" x y rho prob\n\n"); while (scanf("%lf %lf %lf", &x, &y, &rho) != EOF) { prob = g01hac(x, y, rho, NAGERR_DEFAULT); Vprintf("%8.3f%8.3f%8.3f%8.4f\n", x, y, rho, prob); } return EXIT_SUCCESS; }