[35aab3] | 1 | #ifndef GMPFLOAT_H |
---|
| 2 | #define GMPFLOAT_H |
---|
| 3 | /**************************************** |
---|
| 4 | * Computer Algebra System SINGULAR * |
---|
| 5 | ****************************************/ |
---|
| 6 | /* |
---|
| 7 | * ABSTRACT: computations with GMP floating-point numbers |
---|
| 8 | */ |
---|
[2d805a] | 9 | #include <coeffs/coeffs.h> |
---|
[35aab3] | 10 | |
---|
[210852] | 11 | /// Get a mapping function from src into the domain of this type: |
---|
| 12 | nMapFunc ngfSetMap(const coeffs src, const coeffs dst); |
---|
| 13 | |
---|
| 14 | /// Initialize r |
---|
[1cce47] | 15 | BOOLEAN ngfInitChar(coeffs r, void *); |
---|
[210852] | 16 | |
---|
[5b702f] | 17 | const char * ngfRead (const char *s, number *a, const coeffs r); |
---|
| 18 | |
---|
[1c3d1f] | 19 | // Private interface should be hidden!!! |
---|
[210852] | 20 | /// Note: MAY NOT WORK AS EXPECTED! |
---|
[7d90aa] | 21 | BOOLEAN ngfGreaterZero(number za, const coeffs r); |
---|
| 22 | BOOLEAN ngfGreater(number a, number b, const coeffs r); |
---|
| 23 | BOOLEAN ngfEqual(number a, number b, const coeffs r); |
---|
| 24 | BOOLEAN ngfIsOne(number a, const coeffs r); |
---|
| 25 | BOOLEAN ngfIsMOne(number a, const coeffs r); |
---|
| 26 | BOOLEAN ngfIsZero(number za, const coeffs r); |
---|
[2f3764] | 27 | number ngfInit(long i, const coeffs r); |
---|
[7d90aa] | 28 | int ngfInt(number &n, const coeffs r); |
---|
| 29 | number ngfNeg(number za, const coeffs r); |
---|
| 30 | number ngfInvers(number a, const coeffs r); |
---|
| 31 | number ngfAdd(number la, number li, const coeffs r); |
---|
| 32 | number ngfSub(number la, number li, const coeffs r); |
---|
| 33 | number ngfMult(number a, number b, const coeffs r); |
---|
| 34 | number ngfDiv(number a, number b, const coeffs r); |
---|
| 35 | void ngfPower(number x, int exp, number *lu, const coeffs r); |
---|
[210852] | 36 | number ngfCopy(number a, const coeffs r); |
---|
[7d90aa] | 37 | number ngf_Copy(number a, coeffs r); |
---|
| 38 | void ngfWrite(number &a, const coeffs r); |
---|
[03f7b5] | 39 | void ngfCoeffWrite(const coeffs r, BOOLEAN details); |
---|
[35aab3] | 40 | |
---|
[7d90aa] | 41 | void ngfDelete(number *a, const coeffs r); |
---|
[35aab3] | 42 | |
---|
[8df232] | 43 | number ngfMapQ(number from, const coeffs src, const coeffs r); |
---|
[1c3d1f] | 44 | |
---|
[35aab3] | 45 | #endif |
---|