mult
synopsis: INT mult(OP a,b,c)
description:
it multiplies the two objects a and b and the result will
be in c. First there is a check whether a,b,c not NULL then
whether a and b are no empty objects. Then it frees the object c.
Now it multiplies. It is not necessary, that a,b,c are different.
See also mult_apply();
Multiplies two objects, and the result is a new object. Look
at the following list of possible datatypes.
BRUCH,CYCLOTOMIC,GRAL,FINITEFIELD, HOM_SYM,
INTEGER,KRANZTYPUS,KOSTKA,LONGINT,MATRIX,MONOPOLY
PERMUTATION,POLYNOM,SCHUR,SCHUBERT,REIHE
SYMCHAR,SQ_RADICAL,VECTOR.
return:
OK or ERROR
bugs:
many combinations are missing
example:
main() {
OP a = callocobject();
OP b = callocobject();
scan(POLYNOM,a);
scan(BRUCH,b);
mult(a,b,b); println(b);
freeall(a);
freeall(b);
}
This example multiplies a BRUCHobject and a POLYNOMobject, which
gives a POLYNOMobject with BRUCHobjects as coefficients.
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