/* nag_2_sample_ks_test (g08cdc) Example Program. * * Copyright 2000 Numerical Algorithms Group. * * Mark 6, 2000. */ #include #include #include #include #include int main (void) { double d, enda, endb, p, *x=0, *y=0, z; Integer init, i, m, n, ntype; Integer exit_status=0; NagError fail; Nag_TestStatistics ntype_enum; INIT_FAIL(fail); Vprintf("g08cdc Example Program Results\n"); /* Skip heading in data file */ Vscanf("%*[^\n]"); Vscanf("%ld %ld", &n, &m); if (!(x = NAG_ALLOC(n, double)) || !(y = NAG_ALLOC(m, double))) { Vprintf("Allocation failure\n"); exit_status = -1; goto END; } Vprintf("\n"); init = 0; g05cbc(init); enda = 0.0; endb = 2.0; for (i=0;i