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 ERRORbugs:
many combinations are missingexample:
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.de
this page was automatically generated on So Jan 4 10:35:44 CET 2009 on the machine btn6xf