Multiplication and division


Defines

#define MON_MUL(x, y, z)   ((x) = (y) + (z))
#define MON_DIV(x, y, z)   ((x) = (y) - (z))

Functions

int32_t mon_divides (monomial_t x, monomial_t y)

Define Documentation

#define MON_DIV ( x,
y,
 )     ((x) = (y) - (z))

Sets x to the quotient of y and z, assuming that z divides y.

Note:
This macro evaluates each argument only once.

#define MON_MUL ( x,
y,
 )     ((x) = (y) + (z))

Sets x to the product of y and z.

Note:
This macro evaluates each argument only once.


Function Documentation

int32_t mon_divides ( monomial_t  x,
monomial_t  y 
)

Returns whether the monomial x divides the monomial y.

The return value will be either 1 or 0, depending on whether or not x divides y.


Generated on Sat Nov 14 23:24:27 2009 for MONF by  doxygen 1.5.6