75 assert(ci.
get_etat() != ETATNONDEF) ;
88 co.va =
sin( ci.
va ) ;
100 assert(ci.
get_etat() != ETATNONDEF) ;
113 co.va =
cos( ci.
va ) ;
126 assert(ci.
get_etat() != ETATNONDEF) ;
138 co.va =
tan( ci.
va ) ;
150 assert(ci.
get_etat() != ETATNONDEF) ;
175 assert(ci.
get_etat() != ETATNONDEF) ;
182 co.va = double(0.5) * M_PI ;
201 assert(ci.
get_etat() != ETATNONDEF) ;
226 assert(ci.
get_etat() != ETATNONDEF) ;
251 assert(ci.
get_etat() != ETATNONDEF) ;
276 assert(ci.
get_etat() != ETATNONDEF) ;
289 co.va =
exp( ci.
va ) ;
302 assert(ci.
get_etat() != ETATNONDEF) ;
306 cout <<
"Argument of log is ZERO in log(Cmp) !" << endl ;
316 co.va =
log( ci.
va ) ;
328 assert(ci.
get_etat() != ETATNONDEF) ;
332 cout <<
"Argument of log10 is ZERO in log10(Cmp) !" << endl ;
354 assert(ci.
get_etat() != ETATNONDEF) ;
362 cout <<
"pow(Cmp, int) : ETATZERO^n with n <= 0 !" << endl ;
373 co.va =
pow(ci.
va, n) ;
385 assert(ci.
get_etat() != ETATNONDEF) ;
393 cout <<
"pow(Cmp, double) : ETATZERO^x with x <= 0 !" << endl ;
404 co.va =
pow(ci.
va, x) ;
416 assert(ci.
get_etat() != ETATNONDEF) ;
429 co.va =
abs( ci.
va ) ;
441 assert(ci.
get_etat() != ETATNONDEF) ;
451 resu =
max( ci.
va ) ;
464 assert(ci.
get_etat() != ETATNONDEF) ;
474 resu =
min( ci.
va ) ;
487 assert(ci.
get_etat() != ETATNONDEF) ;
510 assert(c1.
get_etat() != ETATNONDEF) ;
511 assert(c2.
get_etat() != ETATNONDEF) ;
521 assert(normdiff.
get_etat() == ETATQCQ) ;
522 assert(norme2.
get_etat() == ETATQCQ) ;
525 for (
int l=0; l<nz; l++) {
526 if ( norme2(l) ==
double(0) ) {
527 resu.
set(l) = normdiff(l) ;
530 resu.
set(l) = normdiff(l) / norme2(l) ;
545 assert(c1.
get_etat() != ETATNONDEF) ;
546 assert(c2.
get_etat() != ETATNONDEF) ;
557 assert(maxdiff.
get_etat() == ETATQCQ) ;
558 assert(max2.
get_etat() == ETATQCQ) ;
561 for (
int l=0; l<nz; l++) {
562 if ( max2(l) ==
double(0) ) {
563 resu.
set(l) = maxdiff(l) ;
566 resu.
set(l) = maxdiff(l) / max2(l) ;
const Map * get_mp() const
Returns the mapping.
Cmp log(const Cmp &)
Neperian logarithm.
Cmp asin(const Cmp &)
Arcsine.
Component of a tensorial field *** DEPRECATED : use class Scalar instead ***.
Cmp exp(const Cmp &)
Exponential.
Cmp sqrt(const Cmp &)
Square root.
const Mg3d * get_mg() const
Gives the Mg3d on which the mapping is defined.
int get_etat() const
Returns the logical state.
Cmp racine_cubique(const Cmp &)
Cube root.
double & set(int i)
Read/write of a particular element (index i) (1D case)
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).
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
Cmp tan(const Cmp &)
Tangent.
Tbl norme(const Cmp &)
Sums of the absolute values of all the values of the Cmp in each domain.
Cmp atan(const Cmp &)
Arctangent.
int get_nzone() const
Returns the number of domains.
Tbl max(const Cmp &)
Maximum values of a Cmp in each domain.
Cmp pow(const Cmp &, int)
Power .
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
Cmp log10(const Cmp &)
Basis 10 logarithm.
Cmp acos(const Cmp &)
Arccosine.
Cmp abs(const Cmp &)
Absolute value.
Cmp sin(const Cmp &)
Sine.
void annule_hard()
Sets the Tbl to zero in a hard way.
Valeur va
The numerical value of the Cmp.
Tbl diffrelmax(const Cmp &a, const Cmp &b)
Relative difference between two Cmp (max version).