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
280 B
C

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