kuiprsve.c 416 B

123456789101112131415161718192021222324
  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <grass/cdhc.h>
  4. #include "local_proto.h"
  5. double *Cdhc_kuipers_v_exp(double *x, int n)
  6. {
  7. static double y[2];
  8. double *d, r;
  9. d = Cdhc_dmax_exp(x, n);
  10. r = sqrt((double)n);
  11. y[1] = d[0] + d[1];
  12. y[0] = (y[1] - 0.2 / n) * (r + 0.35 / r + 0.24);
  13. #ifdef NOISY
  14. fprintf(stdout, " TEST18 KV(E) =%10.4f\n", y[0]);
  15. #endif /* NOISY */
  16. return y;
  17. }