source: git/coeffs/gnumpfl.h @ 4c09bb

spielwiese
Last change on this file since 4c09bb was 58aa457, checked in by Andreas Steenpass <steenpass@…>, 14 years ago
gnumpfl (not yet finished)
  • Property mode set to 100644
File size: 1.4 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.h"
11
12BOOLEAN  ngfGreaterZero(number za, const coeffs r);
13BOOLEAN  ngfGreater(number a, number b, const coeffs r);
14BOOLEAN  ngfEqual(number a, number b, const coeffs r);
15BOOLEAN  ngfIsOne(number a, const coeffs r);
16BOOLEAN  ngfIsMOne(number a, const coeffs r);
17BOOLEAN  ngfIsZero(number za, const coeffs r);
18number   ngfInit(int i, const coeffs r);
19int      ngfInt(number &n, const coeffs r);
20number   ngfNeg(number za, const coeffs r);
21number   ngfInvers(number a, const coeffs r);
22number   ngfAdd(number la, number li, const coeffs r);
23number   ngfSub(number la, number li, const coeffs r);
24number   ngfMult(number a, number b, const coeffs r);
25number   ngfDiv(number a, number b, const coeffs r);
26void     ngfPower(number x, int exp, number *lu, const coeffs r);
27number   ngfCopy(number a);
28number   ngf_Copy(number a, coeffs r);
29const char *   ngfRead (const char *s, number *a, const coeffs r);
30void     ngfWrite(number &a, const coeffs r);
31
32void     ngfDelete(number *a, const coeffs r);
33
34nMapFunc  ngfSetMap(const coeffs src, const coeffs dst);
35
36void setGMPFloatDigits( size_t digits, size_t rest );
37number ngfMapQ(number from, const coeffs r);
38#endif
Note: See TracBrowser for help on using the repository browser.