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 | BOOLEAN ngcGreaterZero(number za, const coeffs r); // !!! MAY NOT WORK AS EXPECTED !!! |
---|
13 | BOOLEAN ngcGreater(number a, number b, const coeffs r); |
---|
14 | BOOLEAN ngcEqual(number a, number b, const coeffs r); |
---|
15 | BOOLEAN ngcIsOne(number a, const coeffs r); |
---|
16 | BOOLEAN ngcIsMOne(number a, const coeffs r); |
---|
17 | BOOLEAN ngcIsZero(number za, const coeffs r); |
---|
18 | number ngcInit(int i, const coeffs r); |
---|
19 | int ngcInt(number &n, const coeffs r); |
---|
20 | number ngcNeg(number za, const coeffs r); |
---|
21 | number ngcInvers(number a, const coeffs r); |
---|
22 | number ngcPar(int i, const coeffs r); |
---|
23 | number ngcAdd(number la, number li, const coeffs r); |
---|
24 | number ngcSub(number la, number li, const coeffs r); |
---|
25 | number ngcMult(number a, number b, const coeffs r); |
---|
26 | number ngcDiv(number a, number b, const coeffs r); |
---|
27 | void ngcPower(number x, int exp, number *lu, const coeffs r); |
---|
28 | number ngcCopy(number a); |
---|
29 | number ngc_Copy(number a, coeffs r); |
---|
30 | const char * ngcRead (const char *s, number *a, const coeffs r); |
---|
31 | void ngcWrite(number &a, const coeffs r); |
---|
32 | number ngcRePart(number a, const coeffs r); |
---|
33 | number ngcImPart(number a, const coeffs r); |
---|
34 | |
---|
35 | |
---|
36 | #ifdef LDEBUG |
---|
37 | BOOLEAN ngcDBTest(number a, const char *f, const int l); |
---|
38 | #endif |
---|
39 | void ngcDelete(number *a, const coeffs r); |
---|
40 | |
---|
41 | nMapFunc ngcSetMap(const coeffs src, const coeffs dst); |
---|
42 | |
---|
43 | number ngcMapQ(number from, const coeffs r); |
---|
44 | #endif |
---|
45 | |
---|
46 | |
---|
47 | // local Variables: *** |
---|
48 | // folded-file: t *** |
---|
49 | // compile-command: "make installg" *** |
---|
50 | // End: *** |
---|