[35aab3] | 1 | #ifndef GMPCOMPLEX_H |
---|
| 2 | #define GMPCOMPLEX_H |
---|
| 3 | /**************************************** |
---|
| 4 | * Computer Algebra System SINGULAR * |
---|
| 5 | ****************************************/ |
---|
[341696] | 6 | /* $Id$ */ |
---|
[35aab3] | 7 | /* |
---|
| 8 | * ABSTRACT: computations with GMP floating-point numbers |
---|
| 9 | */ |
---|
[2d805a] | 10 | #include <coeffs/coeffs.h> |
---|
[35aab3] | 11 | |
---|
[51d835] | 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 |
---|
[1cce47] | 16 | BOOLEAN ngcInitChar(coeffs r, void*); |
---|
[51d835] | 17 | |
---|
[32cc7e] | 18 | void ngcSetChar(const coeffs r); |
---|
[51d835] | 19 | |
---|
[c3d175] | 20 | // Private interface should be hidden!!! |
---|
[51d835] | 21 | |
---|
| 22 | /// Note: MAY NOT WORK AS EXPECTED! |
---|
| 23 | BOOLEAN ngcGreaterZero(number za, const coeffs r); |
---|
[7d90aa] | 24 | BOOLEAN ngcGreater(number a, number b, const coeffs r); |
---|
| 25 | BOOLEAN ngcEqual(number a, number b, const coeffs r); |
---|
| 26 | BOOLEAN ngcIsOne(number a, const coeffs r); |
---|
| 27 | BOOLEAN ngcIsMOne(number a, const coeffs r); |
---|
| 28 | BOOLEAN ngcIsZero(number za, const coeffs r); |
---|
[2f3764] | 29 | number ngcInit(long i, const coeffs r); |
---|
[7d90aa] | 30 | int ngcInt(number &n, const coeffs r); |
---|
| 31 | number ngcNeg(number za, const coeffs r); |
---|
| 32 | number ngcInvers(number a, const coeffs r); |
---|
| 33 | number ngcPar(int i, const coeffs r); |
---|
| 34 | number ngcAdd(number la, number li, const coeffs r); |
---|
| 35 | number ngcSub(number la, number li, const coeffs r); |
---|
| 36 | number ngcMult(number a, number b, const coeffs r); |
---|
| 37 | number ngcDiv(number a, number b, const coeffs r); |
---|
| 38 | void ngcPower(number x, int exp, number *lu, const coeffs r); |
---|
[94b759] | 39 | number ngcCopy(number a, const coeffs r); |
---|
[7d90aa] | 40 | number ngc_Copy(number a, coeffs r); |
---|
| 41 | const char * ngcRead (const char *s, number *a, const coeffs r); |
---|
| 42 | void ngcWrite(number &a, const coeffs r); |
---|
| 43 | number ngcRePart(number a, const coeffs r); |
---|
| 44 | number ngcImPart(number a, const coeffs r); |
---|
[35aab3] | 45 | |
---|
[94b759] | 46 | void ngcDelete(number *a, const coeffs r); |
---|
[03f7b5] | 47 | void ngcCoeffWrite(const coeffs r, BOOLEAN details); |
---|
[35aab3] | 48 | |
---|
| 49 | #ifdef LDEBUG |
---|
[94b759] | 50 | BOOLEAN ngcDBTest(number a, const char *f, const int l, const coeffs r); |
---|
[35aab3] | 51 | #endif |
---|
| 52 | |
---|
| 53 | |
---|
[8df232] | 54 | number ngcMapQ(number from, const coeffs r, const coeffs aRing); |
---|
[35aab3] | 55 | #endif |
---|
[c3d175] | 56 | /* GMPCOMPLEX_H */ |
---|