´

m_iindex_monom

synopsis: INT m_iindex_monom(INT i; OP erg)

description:

builds a POLYNOM object consisting of a single monomial which is the i-th variable. At first it frees the result to an empty object. There is a check whether i is >= 0.

return:

ERROR if an error occures, OK else.

example:


#include "def.h"
#include "macro.h"

 main()
 {
 OP a,b;
 INT i;
 anfang();
 a=callocobject(); b=callocobject();
 for (i=0L; i<= 10L; i++)
 { m_iindex_monom(i,b); add(b,a,a); }
 mult(a,a,b); println(b);
 freeall(a); freeall(b);
 ende();


Send comments or suggestions to:
symmetrica (at) symmetrica.de

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

University of Bayreuth -