851 r->cfExactDiv=
nfDiv;
895 r->nNULL = (number)0;
908 r->iNumberOfParameters = 1;
911 char ** pParameterNames = (
char **)
omAlloc0(
sizeof(
char *));
912 pParameterNames[0] =
omStrDup(name);
917 r->pParameterNames = (
const char**)pParameterNames;
922 r->m_nfPlus1Table=
NULL;
924 if (strlen(name) > 1)
929 r->has_simple_Alloc=
TRUE;
930 r->has_simple_Inverse=
TRUE;
935 Warn(
"illegal characteristic");
954 if( r->m_nfPlus1Table ==
NULL )
957 Warn(
"Sorry: cannot init lookup table!");
963 assume (r -> m_nfCharQ > 0);
965 r->ch = r->m_nfCharP;
BOOLEAN nfIsZero(number a, const coeffs r)
void nfReadTable(const int c, const coeffs r)
static BOOLEAN nfCoeffIsEqual(const coeffs, n_coeffType, void *)
static number nfRandom(siRandProc p, number, number, const coeffs cf)
number nfInit(long i, const coeffs r)
number nfNeg(number c, const coeffs r)
gmp_float log(const gmp_float &a)
BOOLEAN nfDBTest(number a, const char *f, const int l, const coeffs r)
number nfParameter(int i, const coeffs r)
BOOLEAN nfIsMOne(number a, const coeffs r)
static void nfKillChar(coeffs r)
BOOLEAN nfGreater(number a, number b, const coeffs r)
Creation data needed for finite fields.
number nfDiv(number a, number b, const coeffs r)
number nfAdd(number a, number b, const coeffs r)
BOOLEAN nfGreaterZero(number k, const coeffs r)
static char * nfCoeffString(const coeffs r)
static void nfWriteShort(number a, const coeffs r)
long nfInt(number &n, const coeffs r)
number nfSub(number a, number b, const coeffs r)
void nfPower(number a, int i, number *result, const coeffs r)
static FORCE_INLINE n_coeffType getCoeffType(const coeffs r)
Returns the type of coeffs domain.
number nfInvers(number c, const coeffs r)
static int nfParDeg(number n, const coeffs r)
char name(const Variable &v)
void nfCoeffWrite(const coeffs r, BOOLEAN details)
number nfMult(number a, number b, const coeffs r)
nMapFunc nfSetMap(const coeffs src, const coeffs dst)
BOOLEAN nfEqual(number a, number b, const coeffs r)
static void nfWriteLong(number a, const coeffs r)
Rational pow(const Rational &a, int e)
const char * nfRead(const char *s, number *a, const coeffs r)
BOOLEAN nfIsOne(number a, const coeffs r)