The cosinus radius function – right-hand side and boundary condition.
The cosinus radius function – right-hand side and boundary condition
Float r = sqrt(sqr(x[0])+sqr(x[1])+sqr(x[2]));
Float sin_over_ar = (
r == 0) ? 1 : sin(
a*
r)/(
a*
r);
return sqr(
a)*((
d-1)*sin_over_ar + cos(
a*
r)); }
f(
size_t d1) :
d(d1),
a(acos(
Float(-1.0))) {}
};
return cos(
a*sqrt(sqr(x[0])+sqr(x[1])+sqr(x[2]))); }
g(
size_t=0) :
a(acos(
Float(-1.0))) {}
};
see the Float page for the full documentation
see the point page for the full documentation
point operator()(const point &x) const
point operator()(const point &x) const