source: git/libpolys/coeffs/gnumpfl.h @ 03f7b5

spielwiese
Last change on this file since 03f7b5 was 03f7b5, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: detailed printing vs typing for coeff. domains (mostly - minpoly related)
  • Property mode set to 100644
File size: 1.6 KB
Line 
1#ifndef GMPFLOAT_H
2#define GMPFLOAT_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:
13nMapFunc  ngfSetMap(const coeffs src, const coeffs dst);
14
15/// Initialize r
16BOOLEAN ngfInitChar(coeffs r, void *);
17
18const char *   ngfRead (const char *s, number *a, const coeffs r);
19
20 // Private interface should be hidden!!!
21/// Note: MAY NOT WORK AS EXPECTED!
22BOOLEAN  ngfGreaterZero(number za, const coeffs r);
23BOOLEAN  ngfGreater(number a, number b, const coeffs r);
24BOOLEAN  ngfEqual(number a, number b, const coeffs r);
25BOOLEAN  ngfIsOne(number a, const coeffs r);
26BOOLEAN  ngfIsMOne(number a, const coeffs r);
27BOOLEAN  ngfIsZero(number za, const coeffs r);
28number   ngfInit(int i, const coeffs r);
29int      ngfInt(number &n, const coeffs r);
30number   ngfNeg(number za, const coeffs r);
31number   ngfInvers(number a, const coeffs r);
32number   ngfAdd(number la, number li, const coeffs r);
33number   ngfSub(number la, number li, const coeffs r);
34number   ngfMult(number a, number b, const coeffs r);
35number   ngfDiv(number a, number b, const coeffs r);
36void     ngfPower(number x, int exp, number *lu, const coeffs r);
37number   ngfCopy(number a, const coeffs r);
38number   ngf_Copy(number a, coeffs r);
39void     ngfWrite(number &a, const coeffs r);
40void     ngfCoeffWrite(const coeffs r, BOOLEAN details);
41
42void     ngfDelete(number *a, const coeffs r);
43
44number ngfMapQ(number from, const coeffs r);
45
46#endif
Note: See TracBrowser for help on using the repository browser.