27 "non-zero non-unit expected");
36 while ((
i != 1) && (
i%2 == 0))
44 for (
int k= 0;
k <
exp;
k++)
53 while ((
i != 1) && (
j < 31937))
67 for (
int k= 0;
k <
exp;
k++)
77 ASSERT (
j < 31397,
"integer factorizer ran out of primes");
#define ASSERT(expression, message)
int * integerFactorizer(const long integer, int &length, bool &fail)
integer factorization using table look-ups, function may fail if integer contains primes which exceed...
CanonicalForm cyclotomicPoly(int n, bool &fail)
compute the n-th cyclotomic polynomial, function may fail if integer_factorizer fails to factorize n
static int * makeDistinct(int *factors, const int factors_length, int &length)
make prime factorization distinct
bool isPrimitive(const Variable &alpha, bool &fail)
checks if alpha is a primitive element, alpha is assumed to be an algebraic variable over some finite...
int ipower(int b, int m)
int ipower ( int b, int m )
factory's class for variables
CanonicalForm getMipo(const Variable &alpha, const Variable &x)
static BOOLEAN length(leftv result, leftv arg)
gmp_float exp(const gmp_float &a)
int status int void * buf