Operator + DATE 94/01/10 Opérateur + See also :- ----------- * / RESU1 = OBJET1 + OBJET2 ; ** Description : _____________ The + operator does the sum of the objects OBJET1 and OBJET2. Possible operations : ______________________ ----------------------------------------------------------------- | OBJET1 | OBJET2 | RESU1 | ----------------------------------------------------------------- | ENTIER | ENTIER | ENTIER | | ENTIER | FLOTTANT | FLOTTANT | | FLOTTANT | FLOTTANT | FLOTTANT | | CHPOINT | CHPOINT | CHPOINT | | CHPOINT | FLOTTANT | CHPOINT | | MCHAML | MCHAML | MCHAML | | EVOLUTION | EVOLUTION | EVOLUTION | | LISTENTI | LISTENTI | LISTENTI | | LISTREEL | LISTREEL | LISTREEL | | TABLE 'VECTEUR' | TABLE 'VECTEUR' | TABLE 'VECTEUR' | ----------------------------------------------------------------- Note 1 : _________ The + operator calculates the sum of two TABLE type objects of 'VECTEUR' subtype. The tables must be likely to be added, i.e. the elements that have an index in common must be of ENTIER or FLOTTANT type. Note 2 : _________ When the + operator calculates the sum of two EVOLUTION type objects, both objects must have the same type, i.e. they must be either real or complex : a) Real EVOLUTION objects : The sum is done for : - OBJET1=f(x) defined on the D1 domain - OBJET2=g(x) defined on the D2 domain then the sum is calculated on the common domain (D1 and D2). b) Complex EVOLUTION objects : Both objects must have the same abscissae. Each of the two objects must be either "PREE PIMA" or "MODU PHAS". The RESULTAT (result) object will have the same type as OBJET1. Note 3 : _________ When the + operator calculates the sum of two lists of integers or real numbers, they must have the same number of elements. Note 4 : _________ When the + operator calculates the sum of two MCHAML, it does the sum component by component and subarea by subarea for identical elementary subareas and for idential names of components; otherwise it performs an adjunct of the two fields. If the MCHAML point to non FLOTTANT (floating) objects, the object with a non-zero pointer is kept. If both the pointers are different from zero, an addition is performed in the cases of 'POINT' and 'LISTREEL'. In all other cases, an error message is displayed.