100 #include "type_parite.h" 156 cout <<
"Operation Cmp + Cmp forbidden in the external " << endl;
157 cout <<
" compactified domain ! " << endl ;
181 assert(t1.
get_etat() != ETATNONDEF) ;
184 if (x ==
double(0)) {
196 assert(resu.get_etat() == ETATQCQ) ;
197 resu.va = resu.va + x ;
216 return t1 + double(m) ;
223 return t1 + double(m) ;
258 cout <<
"Operation Cmp - Cmp forbidden in the external " << endl;
259 cout <<
" compactified domain ! " << endl ;
283 assert(t1.
get_etat() != ETATNONDEF) ;
286 if (x ==
double(0)) {
298 assert(resu.get_etat() == ETATQCQ) ;
299 resu.va = resu.va - x ;
318 return t1 - double(m) ;
325 return double(m) - t1 ;
386 r.va = c1.
va % c2.
va ;
412 if ( a ==
double(0) ) {
437 return t1 * double(m) ;
444 return double(m) * t1 ;
463 assert(c1.
get_etat() != ETATNONDEF) ;
464 assert(c2.
get_etat() != ETATNONDEF) ;
469 cout <<
"Division by 0 in Cmp / Cmp !" << endl ;
484 r.va = c1.
va / c2.
va ;
500 if ( x ==
double(0) ) {
501 cout <<
"Division by 0 in Cmp / double !" << endl ;
530 cout <<
"Division by 0 in Cmp / Cmp !" << endl ;
540 if ( x ==
double(0) ) {
557 return c1 / double(m) ;
566 return double(m) / c2 ;
582 if (
etat == ETATNONDEF)
600 cout <<
"Operation += Cmp forbidden in the external " << endl;
601 cout <<
" compactified domain ! " << endl ;
606 if (
etat == ETATZERO) {
630 if (
etat == ETATNONDEF)
646 cout <<
"Operation -= Cmp forbidden in the external " << endl;
647 cout <<
" compactified domain ! " << endl ;
653 if (
etat == ETATZERO) {
675 if (
etat == ETATNONDEF)
684 if (
etat == ETATZERO) {
695 assert(
etat == ETATQCQ) ;
const Map * get_mp() const
Returns the mapping.
Component of a tensorial field *** DEPRECATED : use class Scalar instead ***.
int get_etat() const
Returns the logical state.
Base_val operator*(const Base_val &, const Base_val &)
This operator is used when calling multiplication or division of Valeur .
int etat
Logical state (ETATNONDEF , ETATQCQ or ETATZERO ).
void del_deriv()
Logical destructor of the derivatives.
Cmp operator%(const Cmp &, const Cmp &)
Cmp * Cmp with desaliasing.
Cmp operator/(const Cmp &, const Cmp &)
Cmp / Cmp.
void set_etat_zero()
Sets the logical state to ETATZERO (zero).
Cmp operator+(const Cmp &)
int dzpuis
Power of r by which the quantity represented by this must be divided in the external compactified zo...
bool dz_nonzero() const
Returns true if the last domain is compactified and *this is not zero in this domain.
void operator-=(const Cmp &)
-= Cmp
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
void operator*=(const Cmp &)
*= Cmp
void operator+=(const Cmp &)
+= Cmp
const Map * mp
Reference mapping.
int get_dzpuis() const
Returns dzpuis.
void set_etat_nondef()
Sets the logical state to ETATNONDEF (undefined).
bool check_dzpuis(int dzi) const
Returns false if the last domain is compactified and *this is not zero in this domain and dzpuis is n...
Cmp operator-(const Cmp &)
- Cmp
void set_dzpuis(int)
Set a value to dzpuis.
Valeur va
The numerical value of the Cmp.