´

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.de

this page was automatically generated on So Jan 4 10:35:44 CET 2009 on the machine btn6xf

University of Bayreuth -