String conversions and I/O


Functions

char * mon_to_string (monomial_t x, const uint8_t n)
char * mon_to_string_pretty (monomial_t x, const uint8_t n, const char *vars)
monomial_t mon_from_string (char *str)

Detailed Description

The format used for a monomial m in n variables is n m[0] ... m[n-1], where there are two spaces after the first integer and single spaces only otherwise.

Function Documentation

monomial_t mon_from_string ( char *  str  ) 

Returns the monomial given by the string representation str.

char* mon_to_string ( monomial_t  x,
const uint8_t  n 
)

Returns a string representation of the monomial x in $n+1$ variables.

char* mon_to_string_pretty ( monomial_t  x,
const uint8_t  n,
const char *  vars 
)

Returns a pretty string representation of the monomial x in $n+1$ variables.

Since x is a monomial in n + 1 variables, the array of chars vars should have length at least that, so that the ith entry can be used as a symbol for the ith variable in x.

Alternatively, if vars == NULL, an array of default variable names is used.


Generated on Sat Nov 14 23:24:59 2009 for MONV by  doxygen 1.5.6