61 #include "change_var.h" 69 double zero (
double) {
73 double ide (
double x) {
77 double part_ln (
double x) {
78 return 1+x*x*
log(x)/3. ;
81 double part_ln_der (
double x) {
82 return 2./3.*x*
log(x)+x/3. ;
85 double moins_log (
double x) {
89 double plus_sur (
double x) {
93 double plus_log (
double x) {
97 double moins_sur (
double x) {
104 switch (type_change) {
121 der_F = part_ln_der ;
148 cout <<
"Unknown type in Change_var::Change_var(int)" << endl ;
162 switch (type_change) {
179 der_F = part_ln_der ;
206 cout <<
"Unknown type in Change_var::Change_var(int)" << endl ;
219 switch (type_change) {
236 der_F = part_ln_der ;
263 cout <<
"Unknown type in Change_var::Change_var(int)" << endl ;
275 func_F(so.func_F), der_F(so.der_F), func_G(so.func_G), der_G(so.der_G) {}
292 return (*
der_G)(air) ;
double val_der_F(double x)
Returns the value of at { x}.
Cmp log(const Cmp &)
Neperian logarithm.
double(* der_G)(double)
Pointer on the function .
~Change_var()
Constructor by copy.
double val_der_G(double x)
Returns the value of at { x}.
double mult_F
Pointer on the derivative of .
double val_G(double x)
Returns the value of at { x}.
Change_var(int var)
Additive factor for F ## PROVISORY.
double(* der_F)(double)
Pointer on the function .
This class defines a variable change to be used when solving elliptic equations.
double(* func_G)(double)
Pointer on the derivative of .
double val_F(double x)
Standard destructor.
double add_F
Multiplicative factor for F ## PROVISORY.