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) |
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. 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 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 variables.
Since x
is a monomial in n + 1
variables, the array of char
s vars
should have length at least that, so that the i
th entry can be used as a symbol for the i
th variable in x
.
Alternatively, if vars == NULL
, an array of default variable names is used.