/usr/share/doc/rheolef-doc/examples/cosinusprod_laplace.icc is in rheolef-doc 6.7-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | struct f {
Float operator() (const point& x) const {
return d*pi*pi*cos(pi*x[0])*cos(pi*x[1])*cos(pi*x[2]); }
f(size_t d1) : d(d1), pi(acos(Float(-1))) {}
size_t d; const Float pi;
};
struct g {
Float operator() (const point& x) const {
return cos(pi*x[0])*cos(pi*x[1])*cos(pi*x[2]); }
g(size_t d1) : pi(acos(Float(-1))) {}
const Float pi;
};
|