NAG Library Manual, Mark 28.4
Interfaces:  FL   CL   CPP   AD 

NAG CL Interface Introduction
Example description
/* nag_stat_pdf_landau_deriv (g01rtc) Example Program.
 *
 * Copyright 2022 Numerical Algorithms Group.
 *
 * Mark 28.4, 2022.
 */

#include <nag.h>
#include <stdio.h>

int main(void) {
  /* Scalars */
  double x, y;
  Integer exit_status = 0;

  printf(" nag_stat_pdf_landau_deriv (g01rtc) Example Program Results\n");

  /* Skip heading in data file */
  scanf("%*[^\n] ");
  scanf("%lf%*[^\n] ", &x);

  /* nag_stat_pdf_landau_deriv (g01rtc).
   * Landau derivative function phi'(lambda)
   */
  y = nag_stat_pdf_landau_deriv(x);

  printf("\n   X          Y\n\n");
  printf("  %3.1f   %13.4e\n", x, y);

  return exit_status;
}