37 2, 3, 5, 7, 11, 13, 17, 19,
38 23, 29, 31, 37, 41, 43, 47, 53,
39 59, 61, 67, 71, 73, 79, 83, 89,
40 97, 101, 103, 107, 109, 113, 127, 131,
41 137, 139, 149, 151, 157, 163, 167, 173,
42 179, 181, 191, 193, 197, 199, 223, 211,
43 227, 229, 233, 239, 241, 251
123 STICKYASSERT(
strcmp( buffer,
"@@ factory GF(q) table @@\n" ) == 0,
"illegal table" );
127 STICKYASSERT( success,
"illegal table (reading p and n)" );
158 while (
i <
gf_q &&
k < 30 )
#define STICKYASSERT(expression, message)
#define ASSERT(expression, message)
int ipower(int b, int m)
int ipower ( int b, int m )
factory's class for variables
char name(const Variable &v)
FILE * feFopen(const char *path, const char *mode, char *where, short useWerror, short path_only)
int convertback62(char *p, int n)
int gf_tab_numdigits62(int q)
utility functions to access GF Tables
void gf_setcharacteristic(int p, int n, char name)
STATIC_VAR char * gftable_dir
VAR unsigned short * gf_table
static CanonicalForm intVec2CF(int degree, int *coeffs, int level)
void set_gftable_dir(char *d)
static void gf_get_table(int p, int n)
INST_VAR CanonicalForm gf_mipo
Operations in GF, where GF is a finite field of size less than 2^16 represented by a root of Conway p...
int gf_power(int a, int n)
The main handler for Singular numbers which are suitable for Singular polynomials.
helper functions for conversion to and from Singular