/* nag_stat_prob_landau (g01etc) Example Program.
*
* Copyright 2024 Numerical Algorithms Group.
*
* Mark 30.2, 2024.
*/
#include <nag.h>
#include <stdio.h>
int main(void) {
/* Scalars */
double x, y;
Integer exit_status = 0;
printf(" nag_stat_prob_landau (g01etc) Example Program Results\n");
/* Skip heading in data file */
scanf("%*[^\n] ");
scanf("%lf%*[^\n] ", &x);
/* nag_stat_prob_landau (g01etc).
* Landau distribution function Phi(lambda )
*/
y = nag_stat_prob_landau(x);
printf("\n X Y\n\n");
printf(" %3.1f %13.4e\n", x, y);
return exit_status;
}