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/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 | BOOLEAN ngcInitChar(coeffs r, void*); |
---|
17 | |
---|
18 | |
---|
19 | // Private interface should be hidden!!! |
---|
20 | |
---|
21 | /// Note: MAY NOT WORK AS EXPECTED! |
---|
22 | BOOLEAN ngcGreaterZero(number za, const coeffs r); |
---|
23 | BOOLEAN ngcGreater(number a, number b, const coeffs r); |
---|
24 | BOOLEAN ngcEqual(number a, number b, const coeffs r); |
---|
25 | BOOLEAN ngcIsOne(number a, const coeffs r); |
---|
26 | BOOLEAN ngcIsMOne(number a, const coeffs r); |
---|
27 | BOOLEAN ngcIsZero(number za, const coeffs r); |
---|
28 | number ngcInit(int i, const coeffs r); |
---|
29 | int ngcInt(number &n, const coeffs r); |
---|
30 | number ngcNeg(number za, const coeffs r); |
---|
31 | number ngcInvers(number a, const coeffs r); |
---|
32 | number ngcPar(int i, const coeffs r); |
---|
33 | number ngcAdd(number la, number li, const coeffs r); |
---|
34 | number ngcSub(number la, number li, const coeffs r); |
---|
35 | number ngcMult(number a, number b, const coeffs r); |
---|
36 | number ngcDiv(number a, number b, const coeffs r); |
---|
37 | void ngcPower(number x, int exp, number *lu, const coeffs r); |
---|
38 | number ngcCopy(number a, const coeffs r); |
---|
39 | number ngc_Copy(number a, coeffs r); |
---|
40 | const char * ngcRead (const char *s, number *a, const coeffs r); |
---|
41 | void ngcWrite(number &a, const coeffs r); |
---|
42 | number ngcRePart(number a, const coeffs r); |
---|
43 | number ngcImPart(number a, const coeffs r); |
---|
44 | |
---|
45 | void ngcDelete(number *a, const coeffs r); |
---|
46 | void ngcCoeffWrite(const coeffs r); |
---|
47 | |
---|
48 | #ifdef LDEBUG |
---|
49 | BOOLEAN ngcDBTest(number a, const char *f, const int l, const coeffs r); |
---|
50 | #endif |
---|
51 | |
---|
52 | |
---|
53 | // Why is this here? who needs it? |
---|
54 | // number ngcMapQ(number from, const coeffs r, const coeffs aRing); |
---|
55 | #endif |
---|
56 | /* GMPCOMPLEX_H */ |
---|