source: git/kernel/gnumpfl.h @ bc669c

fieker-DuValspielwiese
Last change on this file since bc669c was 493225, checked in by Hans Schönemann <hannes@…>, 15 years ago
nWrite indep. from currRing git-svn-id: file:///usr/local/Singular/svn/trunk@12377 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.2 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 "structs.h"
11
12BOOLEAN  ngfGreaterZero(number za);
13BOOLEAN  ngfGreater(number a, number b);
14BOOLEAN  ngfEqual(number a, number b);
15BOOLEAN  ngfIsOne(number a);
16BOOLEAN  ngfIsMOne(number a);
17BOOLEAN  ngfIsZero(number za);
18number   ngfInit(int i, const ring r);
19int      ngfInt(number &n, const ring r);
20number   ngfNeg(number za);
21number   ngfInvers(number a);
22number   ngfAdd(number la, number li);
23number   ngfSub(number la, number li);
24number   ngfMult(number a, number b);
25number   ngfDiv(number a, number b);
26void     ngfPower(number x, int exp, number *lu);
27number   ngfCopy(number a);
28number   ngf_Copy(number a, ring r);
29const char *   ngfRead (const char *s, number *a);
30void     ngfWrite(number &a, const ring r);
31
32#ifdef LDEBUG
33BOOLEAN  ngfDBTest(number a, const char *f, const int l);
34#endif
35void     ngfDelete(number *a, const ring r);
36
37nMapFunc  ngfSetMap(const ring src, const ring dst);
38
39void setGMPFloatDigits( size_t digits, size_t rest );
40number ngfMapQ(number from);
41#endif
Note: See TracBrowser for help on using the repository browser.