add
synopsis: INT add(OP a,b,c)
description:
adds the objects a and b and the result is c
It also works with a,b,c not different. First there is a
check whether a or b is an empty object, if yes the
second one is copied to the first one, and the routine
finishes. Then the result object c is freed.
Then there is a call to the specific add routine for the
entered objects.
It work for the following kinds:
MONOPOLY, CYCLOTOMIC, SQ_RADICAL, GEN_CHAR, INTEGER,
PARTITION, GRAL, POLYNOM, MONOM, VECTOR, SCHUR, LONGINT,
MATRIX, KRANZTYPUS, HOM_SYM, SCHUBERT, SYMCHAR, BRUCH,
REIHE, FINITEFIELD
return:
OK or ERROR
bugs:
not all possible combinations are implemented
If you enter for example add(a,a,a) with a a POLYNOM
object, there is first a copy then an addition,
even if a merge would be faster. In this case you should use
add_apply
Send comments or suggestions to:
symmetrica (at) symmetrica
this page was automatically generated on So Aug 10 12:23:24 CEST 2008 on the machine btn6xa