sinusprod.h

The sinus product function

struct u_exact {
Float operator() (const point& x) const {
switch (d) {
case 0: return 0;
case 1: return sin(pi*x[0]);
case 2: return sin(pi*x[0])*sin(pi*x[1]);
default: return sin(pi*x[0])*sin(pi*x[1])*sin(pi*x[2]);
}
}
u_exact(size_t d1=0) : d(d1), pi(acos(Float(-1.0))) {}
size_t d; Float pi;
};
Float
see the Float page for the full documentation
point
see the point page for the full documentation
u_exact
Definition: interpolate_RTk_polynom.icc:125
u_exact::d
size_t d
Definition: interpolate_RTk_polynom.icc:145
u_exact::operator()
point operator()(const point &x) const
Definition: interpolate_RTk_polynom.icc:126
u_exact::u_exact
u_exact(size_t d1, Float w1=acos(Float(-1)))
Definition: interpolate_RTk_polynom.icc:144
u_exact::pi
Float pi
Definition: cosinusprod.h:29