21char change_var_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Change_var/change_var.C,v 1.7 2014/10/13 08:52:46 j_novak Exp $" ;
58#include "change_var.h"
70double ide (
double x) {
74double part_ln (
double x) {
75 return 1+x*x*
log(x)/3. ;
78double part_ln_der (
double x) {
79 return 2./3.*x*
log(x)+x/3. ;
82double moins_log (
double x) {
86double plus_sur (
double x) {
90double plus_log (
double x) {
94double moins_sur (
double x) {
101 switch (type_change) {
118 der_F = part_ln_der ;
145 cout <<
"Unknown type in Change_var::Change_var(int)" << endl ;
159 switch (type_change) {
176 der_F = part_ln_der ;
203 cout <<
"Unknown type in Change_var::Change_var(int)" << endl ;
216 switch (type_change) {
233 der_F = part_ln_der ;
260 cout <<
"Unknown type in Change_var::Change_var(int)" << endl ;
272 func_F(so.func_F), der_F(so.der_F), func_G(so.func_G), der_G(so.der_G) {}
289 return (*
der_G)(air) ;
This class defines a variable change to be used when solving elliptic equations.
double mult_F
Pointer on the derivative of .
double(* func_G)(double)
Pointer on the derivative of .
double add_F
Multiplicative factor for F ## PROVISORY.
double(* der_F)(double)
Pointer on the function .
double val_F(double x)
Standard destructor.
double val_der_F(double x)
Returns the value of at {\tt x}.
Change_var(int var)
Additive factor for F ## PROVISORY.
double val_der_G(double x)
Returns the value of at {\tt x}.
double(* der_G)(double)
Pointer on the function .
~Change_var()
Constructor by copy.
double val_G(double x)
Returns the value of at {\tt x}.
Cmp log(const Cmp &)
Neperian logarithm.