90 assert(ti.
get_etat() != ETATNONDEF) ;
104 *(to.c) =
sin( *(ti.
c) ) ;
115 assert(ti.
get_etat() != ETATNONDEF) ;
131 *(to.c) =
cos( *(ti.
c) ) ;
142 assert(ti.
get_etat() != ETATNONDEF) ;
156 *(to.c) =
tan( *(ti.
c) ) ;
167 assert(ti.
get_etat() != ETATNONDEF) ;
181 *(to.c) =
asin( *(ti.
c) ) ;
192 assert(ti.
get_etat() != ETATNONDEF) ;
199 *(to.c) = M_PI * .5 ;
208 *(to.c) =
acos( *(ti.
c) ) ;
219 assert(ti.
get_etat() != ETATNONDEF) ;
233 *(to.c) =
atan( *(ti.
c) ) ;
244 assert(ti.
get_etat() != ETATNONDEF) ;
258 *(to.c) =
sqrt( *(ti.
c) ) ;
269 assert(ti.
get_etat() != ETATNONDEF) ;
285 *(to.c) =
exp( *(ti.
c) ) ;
296 assert(ti.
get_etat() != ETATNONDEF) ;
325 assert(ti.
get_etat() != ETATNONDEF) ;
329 cout <<
"Valeur log: log(ETATZERO) !" << endl ;
340 *(to.c) =
log( *(ti.
c) ) ;
351 assert(ti.
get_etat() != ETATNONDEF) ;
355 cout <<
"Valeur log10: log10(ETATZERO) !" << endl ;
366 *(to.c) =
log10( *(ti.
c) ) ;
377 assert(ti.
get_etat() != ETATNONDEF) ;
385 cout <<
"Valeur pow: ETATZERO^n with n<=0 ! "<< endl ;
398 *(to.c) =
pow( *(ti.
c), x ) ;
409 assert(ti.
get_etat() != ETATNONDEF) ;
417 cout <<
"Valeur pow: ETATZERO^x with x<=0 !" << endl ;
429 *(to.c) =
pow( *(ti.
c), x ) ;
440 assert(vi.
get_etat() != ETATNONDEF) ;
458 *(vo.c) =
abs( *(vi.
c) ) ;
469 assert(vi.
get_etat() != ETATNONDEF) ;
493 assert(vi.
get_etat() != ETATNONDEF) ;
522 assert(vi.
get_etat() != ETATNONDEF) ;
550 assert(vi.
get_etat() != ETATNONDEF) ;
564 resu =
max( *(vi.
c) ) ;
578 assert(vi.
get_etat() != ETATNONDEF) ;
592 resu =
min( *(vi.
c) ) ;
606 assert(vi.
get_etat() != ETATNONDEF) ;
634 assert(v1.
get_etat() != ETATNONDEF) ;
635 assert(v2.
get_etat() != ETATNONDEF) ;
644 assert(normdiff.
get_etat() == ETATQCQ) ;
645 assert(norme2.
get_etat() == ETATQCQ) ;
648 for (
int l=0; l<nz; l++) {
649 if ( norme2(l) ==
double(0) ) {
650 resu.
set(l) = normdiff(l) ;
653 resu.
set(l) = normdiff(l) / norme2(l) ;
668 assert(v1.
get_etat() != ETATNONDEF) ;
669 assert(v2.
get_etat() != ETATNONDEF) ;
678 assert(maxdiff.
get_etat() == ETATQCQ) ;
679 assert(max2.
get_etat() == ETATQCQ) ;
682 for (
int l=0; l<nz; l++) {
683 if ( max2(l) ==
double(0) ) {
684 resu.
set(l) = maxdiff(l) ;
687 resu.
set(l) = maxdiff(l) / max2(l) ;
Cmp log(const Cmp &)
Neperian logarithm.
Cmp asin(const Cmp &)
Arcsine.
Cmp exp(const Cmp &)
Exponential.
Cmp sqrt(const Cmp &)
Square root.
Cmp racine_cubique(const Cmp &)
Cube root.
double & set(int i)
Read/write of a particular element (index i) (1D case)
void coef_i() const
Computes the physical value of *this.
Values and coefficients of a (real-value) function.
int get_etat() const
Gives the logical state.
Tbl min(const Cmp &)
Minimum values of a Cmp in each domain.
Cmp cos(const Cmp &)
Cosine.
Tbl diffrel(const Cmp &a, const Cmp &b)
Relative difference between two Cmp (norme version).
const Mg3d * get_mg() const
Returns the Mg3d on which the this is defined.
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
Cmp tan(const Cmp &)
Tangent.
int get_etat() const
Returns the logical state.
Tbl norme(const Cmp &)
Sums of the absolute values of all the values of the Cmp in each domain.
Cmp atan(const Cmp &)
Arctangent.
Mtbl * c
Values of the function at the points of the multi-grid.
int get_nzone() const
Returns the number of domains.
Tbl max(const Cmp &)
Maximum values of a Cmp in each domain.
double totalmax(const Mtbl &)
Maximum value of the Mtbl elements in all domains.
Cmp pow(const Cmp &, int)
Power .
double totalmin(const Mtbl &)
Minimum value of the Mtbl elements in all domain.
Cmp log10(const Cmp &)
Basis 10 logarithm.
Cmp acos(const Cmp &)
Arccosine.
Cmp abs(const Cmp &)
Absolute value.
void set_etat_c_qcq()
Sets the logical state to ETATQCQ (ordinary state) for values in the configuration space (Mtbl c )...
Cmp sin(const Cmp &)
Sine.
Mtbl Heaviside(const Mtbl &)
Heaviside function.
void annule_hard()
Sets the Tbl to zero in a hard way.
Tbl diffrelmax(const Cmp &a, const Cmp &b)
Relative difference between two Cmp (max version).