1 | #ifndef RMODULON_H |
---|
2 | #define RMODULON_H |
---|
3 | /**************************************** |
---|
4 | * Computer Algebra System SINGULAR * |
---|
5 | ****************************************/ |
---|
6 | /* |
---|
7 | * ABSTRACT: numbers modulo n |
---|
8 | */ |
---|
9 | #ifdef HAVE_RINGS |
---|
10 | #include <coeffs/coeffs.h> |
---|
11 | #include <coeffs/rintegers.h> |
---|
12 | |
---|
13 | #ifndef NATNUMBER |
---|
14 | #define NATNUMBER unsigned long |
---|
15 | #endif |
---|
16 | |
---|
17 | BOOLEAN nrnInitChar (coeffs r, void*); |
---|
18 | number nrnCopy (number a, const coeffs r); |
---|
19 | int nrnSize (number a, const coeffs r); |
---|
20 | void nrnDelete (number *a, const coeffs r); |
---|
21 | BOOLEAN nrnGreaterZero (number k, const coeffs r); |
---|
22 | number nrnMult (number a, number b, const coeffs r); |
---|
23 | number nrnInit (long i, const coeffs r); |
---|
24 | int nrnInt (number &n, const coeffs r); |
---|
25 | number nrnAdd (number a, number b, const coeffs r); |
---|
26 | number nrnSub (number a, number b, const coeffs r); |
---|
27 | void nrnPower (number a, int i, number * result, const coeffs r); |
---|
28 | BOOLEAN nrnIsZero (number a, const coeffs r); |
---|
29 | BOOLEAN nrnIsOne (number a, const coeffs r); |
---|
30 | BOOLEAN nrnIsMOne (number a, const coeffs r); |
---|
31 | BOOLEAN nrnIsUnit (number a, const coeffs r); |
---|
32 | number nrnGetUnit (number a, const coeffs r); |
---|
33 | number nrnDiv (number a, number b, const coeffs r); |
---|
34 | number nrnMod (number a,number b, const coeffs r); |
---|
35 | number nrnIntDiv (number a,number b, const coeffs r); |
---|
36 | number nrnNeg (number c, const coeffs r); |
---|
37 | number nrnInvers (number c, const coeffs r); |
---|
38 | BOOLEAN nrnGreater (number a, number b, const coeffs r); |
---|
39 | BOOLEAN nrnDivBy (number a, number b, const coeffs r); |
---|
40 | int nrnDivComp (number a, number b, const coeffs r); |
---|
41 | BOOLEAN nrnEqual (number a, number b, const coeffs r); |
---|
42 | number nrnLcm (number a,number b, const coeffs r); |
---|
43 | number nrnGcd (number a,number b, const coeffs r); |
---|
44 | number nrnExtGcd (number a, number b, number *s, number *t, const coeffs r); |
---|
45 | nMapFunc nrnSetMap (const coeffs src, const coeffs dst); |
---|
46 | #define nrnWrite nrzWrite |
---|
47 | const char * nrnRead (const char *s, number *a, const coeffs r); |
---|
48 | void nrnCoeffWrite (const coeffs r, BOOLEAN details); |
---|
49 | #ifdef LDEBUG |
---|
50 | BOOLEAN nrnDBTest (number a, const char *f, const int l, const coeffs r); |
---|
51 | #endif |
---|
52 | void nrnSetExp(int c, const coeffs r); |
---|
53 | void nrnInitExp(int c, const coeffs r); |
---|
54 | |
---|
55 | #endif |
---|
56 | #endif |
---|