$$$$ +
DATE 94/01/10
Operateur + Voir aussi : -
----------- *
/
**
----------------------
| 1st possibility |
----------------------
RESU1 = OBJET1 + OBJET2 ;
Description :
_____________
The + operator performs 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 pointers are differents from
zero, an addition is performed in the cases of 'POINT', 'LISTREEL'
and 'EVOLUTIO', according to the rules for the addition of these
objects. In all other cases, an error message is displayed.
----------------------
| 2nd possibility |
----------------------
OBJET2 = + TAB1 ;
Purpose:
_______
The + operator builds the union of the objects contained
in the table TAB1 of sub type ESCLAVE TAB1. These objects must
be of type CHAMPOINT or MCHAML.
© Cast3M 2003 - All rights reserved.
Disclaimer