1 | #ifndef SHORTFL_H |
---|
2 | #define SHORTFL_H |
---|
3 | /**************************************** |
---|
4 | * Computer Algebra System SINGULAR * |
---|
5 | ****************************************/ |
---|
6 | /* |
---|
7 | * ABSTRACT |
---|
8 | */ |
---|
9 | /* $Id$ */ |
---|
10 | #include <coeffs/coeffs.h> |
---|
11 | |
---|
12 | |
---|
13 | /// Get a mapping function from src into the domain of this type: n_R |
---|
14 | nMapFunc nrSetMap(const coeffs src, const coeffs dst); |
---|
15 | |
---|
16 | /// Initialize r |
---|
17 | BOOLEAN nrInitChar(coeffs r, void*); |
---|
18 | |
---|
19 | // Private interface should be hidden!!! |
---|
20 | |
---|
21 | BOOLEAN nrGreaterZero (number k, const coeffs r); |
---|
22 | number nrMult (number a, number b, const coeffs r); |
---|
23 | number nrInit (int i, const coeffs r); |
---|
24 | int nrInt (number &n, const coeffs r); |
---|
25 | number nrAdd (number a, number b, const coeffs r); |
---|
26 | number nrSub (number a, number b, const coeffs r); |
---|
27 | void nrPower (number a, int i, number * result, const coeffs r); |
---|
28 | BOOLEAN nrIsZero (number a, const coeffs r); |
---|
29 | BOOLEAN nrIsOne (number a, const coeffs r); |
---|
30 | BOOLEAN nrIsMOne (number a, const coeffs r); |
---|
31 | number nrDiv (number a, number b, const coeffs r); |
---|
32 | number nrNeg (number c, const coeffs r); |
---|
33 | number nrInvers (number c, const coeffs r); |
---|
34 | BOOLEAN nrGreater (number a, number b, const coeffs r); |
---|
35 | BOOLEAN nrEqual (number a, number b, const coeffs r); |
---|
36 | void nrWrite (number &a, const coeffs r); |
---|
37 | const char * nrRead (const char *s, number *a, const coeffs r); |
---|
38 | #ifdef LDEBUG |
---|
39 | BOOLEAN nrDBTest(number a, const coeffs r, const char *f, const int l); |
---|
40 | #endif |
---|
41 | |
---|
42 | |
---|
43 | |
---|
44 | // Where are the following used? |
---|
45 | // int nrGetChar(); |
---|
46 | // number nrMapQ(number from, const coeffs r, const coeffs aRing); |
---|
47 | |
---|
48 | |
---|
49 | /// Converts a n_R number into a float. Needed by Maps |
---|
50 | float nrFloat(number n); |
---|
51 | |
---|
52 | |
---|
53 | #endif |
---|
54 | |
---|