/* nag_moment_2_landau (g01qtc) Example Program.
*
* Copyright 2017 Numerical Algorithms Group.
*
* Mark 26.1, 2017.
*/
#include <stdio.h>
#include <nag.h>
#include <nag_stdlib.h>
#include <nagg01.h>
int main(void)
{
/* Scalars */
Integer exit_status = 0;
double x, y;
printf(" nag_moment_2_landau (g01qtc) Example Program Results\n");
/* Skip heading in data file */
scanf("%*[^\n] ");
scanf("%lf%*[^\n] ", &x);
/* nag_moment_2_landau (g01qtc).
* Landau second moment function Phi_2(x)
*/
y = nag_moment_2_landau(x);
printf("\n X Y\n\n");
printf(" %3.1f %13.4e\n", x, y);
return exit_status;
}