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 ;
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) ;
int get_nzone() const
Returns the number of domains.
int get_etat() const
Gives the logical state.
void annule_hard()
Sets the Tbl to zero in a hard way.
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
double & set(int i)
Read/write of a particular element (index i) (1D case).
Values and coefficients of a (real-value) function.
void set_etat_c_qcq()
Sets the logical state to ETATQCQ (ordinary state) for values in the configuration space (Mtbl c ).
int get_etat() const
Returns the logical state.
Mtbl * c
Values of the function at the points of the multi-grid.
void coef_i() const
Computes the physical value of *this.
const Mg3d * get_mg() const
Returns the Mg3d on which the this is defined.
Cmp atan(const Cmp &)
Arctangent.
Cmp sqrt(const Cmp &)
Square root.
Cmp log10(const Cmp &)
Basis 10 logarithm.
Cmp exp(const Cmp &)
Exponential.
Cmp sin(const Cmp &)
Sine.
Tbl diffrel(const Cmp &a, const Cmp &b)
Relative difference between two Cmp (norme version).
Tbl norme(const Cmp &)
Sums of the absolute values of all the values of the Cmp in each domain.
Cmp acos(const Cmp &)
Arccosine.
Cmp asin(const Cmp &)
Arcsine.
Cmp racine_cubique(const Cmp &)
Cube root.
Tbl min(const Cmp &)
Minimum values of a Cmp in each domain.
Tbl max(const Cmp &)
Maximum values of a Cmp in each domain.
Cmp pow(const Cmp &, int)
Power .
Cmp cos(const Cmp &)
Cosine.
Cmp abs(const Cmp &)
Absolute value.
Tbl diffrelmax(const Cmp &a, const Cmp &b)
Relative difference between two Cmp (max version).
Cmp tan(const Cmp &)
Tangent.
Cmp log(const Cmp &)
Neperian logarithm.
Mtbl Heaviside(const Mtbl &)
Heaviside function.
double totalmin(const Mtbl &)
Minimum value of the Mtbl elements in all domain.
double totalmax(const Mtbl &)
Maximum value of the Mtbl elements in all domains.
Coord x
x coordinate centered on the grid