You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
simulacion-permeabilidad/fftma_module/gen/lib_src/cardsin.c

20 lines
314 B
C

#include "genlib.h"
#include <math.h>
#include <stdio.h>
#include <time.h>
/*cardsin covariance function*/
double cardsin(double h, int cores) {
float delta = 20.371;
double z;
if (h != 0) {
z = (double)(h * delta);
z = sin(z) / z;
} else {
z = 1.;
}
return z;
}