1 | #ifndef GMPCOMPLEX_H |
---|
2 | #define GMPCOMPLEX_H |
---|
3 | /**************************************** |
---|
4 | * Computer Algebra System SINGULAR * |
---|
5 | ****************************************/ |
---|
6 | /* $Id$ */ |
---|
7 | /* |
---|
8 | * ABSTRACT: computations with GMP floating-point numbers |
---|
9 | */ |
---|
10 | #include "coeffs.h" |
---|
11 | |
---|
12 | /// Get a mapping function from src into the domain of this type: long_C! |
---|
13 | nMapFunc ngcSetMap(const coeffs src, const coeffs dst); |
---|
14 | |
---|
15 | /// Initialize r |
---|
16 | void ngcInitChar(coeffs r, void*); |
---|
17 | |
---|
18 | /// test, whether r is an instance of nInitCoeffs(n, parameter) */ |
---|
19 | static BOOLEAN ngcCoeffsEqual(const coeffs r, n_coeffType n, void* parameter); |
---|
20 | |
---|
21 | |
---|
22 | |
---|
23 | // Private interface should be hidden!!! |
---|
24 | |
---|
25 | /// Note: MAY NOT WORK AS EXPECTED! |
---|
26 | BOOLEAN ngcGreaterZero(number za, const coeffs r); |
---|
27 | BOOLEAN ngcGreater(number a, number b, const coeffs r); |
---|
28 | BOOLEAN ngcEqual(number a, number b, const coeffs r); |
---|
29 | BOOLEAN ngcIsOne(number a, const coeffs r); |
---|
30 | BOOLEAN ngcIsMOne(number a, const coeffs r); |
---|
31 | BOOLEAN ngcIsZero(number za, const coeffs r); |
---|
32 | number ngcInit(int i, const coeffs r); |
---|
33 | int ngcInt(number &n, const coeffs r); |
---|
34 | number ngcNeg(number za, const coeffs r); |
---|
35 | number ngcInvers(number a, const coeffs r); |
---|
36 | number ngcPar(int i, const coeffs r); |
---|
37 | number ngcAdd(number la, number li, const coeffs r); |
---|
38 | number ngcSub(number la, number li, const coeffs r); |
---|
39 | number ngcMult(number a, number b, const coeffs r); |
---|
40 | number ngcDiv(number a, number b, const coeffs r); |
---|
41 | void ngcPower(number x, int exp, number *lu, const coeffs r); |
---|
42 | number ngcCopy(number a, const coeffs r); |
---|
43 | number ngc_Copy(number a, coeffs r); |
---|
44 | const char * ngcRead (const char *s, number *a, const coeffs r); |
---|
45 | void ngcWrite(number &a, const coeffs r); |
---|
46 | number ngcRePart(number a, const coeffs r); |
---|
47 | number ngcImPart(number a, const coeffs r); |
---|
48 | |
---|
49 | void ngcDelete(number *a, const coeffs r); |
---|
50 | |
---|
51 | #ifdef LDEBUG |
---|
52 | BOOLEAN ngcDBTest(number a, const char *f, const int l, const coeffs r); |
---|
53 | #endif |
---|
54 | |
---|
55 | |
---|
56 | // Why is this here? who needs it? |
---|
57 | // number ngcMapQ(number from, const coeffs r, const coeffs aRing); |
---|
58 | #endif |
---|
59 | /* GMPCOMPLEX_H */ |
---|