jacobi.template
userset.h
Go to the documentation of this file.
1 #ifndef USERSET_FILE
2 #define USERSET_FILE
3 #include <cmath>
10 double FunctF(double const x, double const y);
11 
18 double FunctU(double const x, double const y);
19 
20 
27 inline
28 double fNice(double const x, double const y)
29 {
30  //return x * x * std::sin(2.5 * M_PI * y); // solution u
31  return std::sin(M_PI*2.5*y)*(M_PI*M_PI*2.5*2.5*x*x - 2); // -Laplacian(u)
32 }
33 
40 inline
41 double f_zero(double const x, double const y)
42 //double f_zero(double const /*x*/, double const /*y*/)
43 {
44  return 0.0 + 0.0*(x+y);
45 }
46 
47 #endif
fNice
double fNice(double const x, double const y)
Definition: userset.h:28
FunctF
double FunctF(double const x, double const y)
Definition: userset.cpp:5
FunctU
double FunctU(double const x, double const y)
Definition: userset.cpp:13
f_zero
double f_zero(double const x, double const y)
Definition: userset.h:41