28 else if(r>0.5 && r<=1.5)
29 return 1.0/(6*h)*( 5.0 - 3.0*r - sqrt(-3.0*(1-r)*(1-r) + 1.0) );
31 return 1.0/(3*h)*( 1.0 + sqrt(-3.0*r*r + 1.0) );
double real
Is a float or a double depending on the machine precision.
real delta(real x, real y, real h)
Two-dimensional discrete delta function.
real dhRoma(real x, real h)
Discrete delta function from Roma et al. (1999).
Declaration of the discrete delta function.