source: git/coeffs/gnumpc.h @ 2b957a

spielwiese
Last change on this file since 2b957a was 2b957a, checked in by Oleksandr Motsak <motsak@…>, 14 years ago
Fixing bugs
  • Property mode set to 100644
File size: 2.0 KB
Line 
1#ifndef GMPCOMPLEX_H
2#define GMPCOMPLEX_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
12/// Get a mapping function from src into the domain of this type: long_C!
13nMapFunc  ngcSetMap(const coeffs src, const coeffs dst);
14
15/// Initialize r
16void ngcInitChar(coeffs r, void*);
17
18/// test, whether r is an instance of nInitCoeffs(n, parameter) */
19static BOOLEAN ngcCoeffsEqual(const coeffs r, n_coeffType n, void* parameter);
20
21
22
23// Private interface should be hidden!!!
24     
25/// Note: MAY NOT WORK AS EXPECTED!
26BOOLEAN  ngcGreaterZero(number za, const coeffs r); 
27BOOLEAN  ngcGreater(number a, number b, const coeffs r);
28BOOLEAN  ngcEqual(number a, number b, const coeffs r);
29BOOLEAN  ngcIsOne(number a, const coeffs r);
30BOOLEAN  ngcIsMOne(number a, const coeffs r);
31BOOLEAN  ngcIsZero(number za, const coeffs r);
32number   ngcInit(int i, const coeffs r);
33int      ngcInt(number &n, const coeffs r);
34number   ngcNeg(number za, const coeffs r);
35number   ngcInvers(number a, const coeffs r);
36number   ngcPar(int i, const coeffs r);
37number   ngcAdd(number la, number li, const coeffs r);
38number   ngcSub(number la, number li, const coeffs r);
39number   ngcMult(number a, number b, const coeffs r);
40number   ngcDiv(number a, number b, const coeffs r);
41void     ngcPower(number x, int exp, number *lu, const coeffs r);
42number   ngcCopy(number a, const coeffs r);
43number   ngc_Copy(number a, coeffs r);
44const char * ngcRead (const char *s, number *a, const coeffs r);
45void     ngcWrite(number &a, const coeffs r);
46number   ngcRePart(number a, const coeffs r);
47number   ngcImPart(number a, const coeffs r);
48
49void     ngcDelete(number *a, const coeffs r);
50
51#ifdef LDEBUG
52BOOLEAN  ngcDBTest(number a, const char *f, const int l, const coeffs r);
53#endif
54
55
56// Why is this here? who needs it?
57// number ngcMapQ(number from, const coeffs r, const coeffs aRing);
58#endif
59/* GMPCOMPLEX_H */
Note: See TracBrowser for help on using the repository browser.