source: git/libpolys/coeffs/gnumpc.h @ 5f4015a

spielwiese
Last change on this file since 5f4015a was 32cc7e, checked in by Burcin Erocal <burcin@…>, 13 years ago
Implement setting precision of real and complex coefficient domains.
  • Property mode set to 100644
File size: 1.9 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/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
16BOOLEAN ngcInitChar(coeffs r, void*);
17
18void ngcSetChar(const coeffs r);
19
20// Private interface should be hidden!!!
21     
22/// Note: MAY NOT WORK AS EXPECTED!
23BOOLEAN  ngcGreaterZero(number za, const coeffs r); 
24BOOLEAN  ngcGreater(number a, number b, const coeffs r);
25BOOLEAN  ngcEqual(number a, number b, const coeffs r);
26BOOLEAN  ngcIsOne(number a, const coeffs r);
27BOOLEAN  ngcIsMOne(number a, const coeffs r);
28BOOLEAN  ngcIsZero(number za, const coeffs r);
29number   ngcInit(int i, const coeffs r);
30int      ngcInt(number &n, const coeffs r);
31number   ngcNeg(number za, const coeffs r);
32number   ngcInvers(number a, const coeffs r);
33number   ngcPar(int i, const coeffs r);
34number   ngcAdd(number la, number li, const coeffs r);
35number   ngcSub(number la, number li, const coeffs r);
36number   ngcMult(number a, number b, const coeffs r);
37number   ngcDiv(number a, number b, const coeffs r);
38void     ngcPower(number x, int exp, number *lu, const coeffs r);
39number   ngcCopy(number a, const coeffs r);
40number   ngc_Copy(number a, coeffs r);
41const char * ngcRead (const char *s, number *a, const coeffs r);
42void     ngcWrite(number &a, const coeffs r);
43number   ngcRePart(number a, const coeffs r);
44number   ngcImPart(number a, const coeffs r);
45
46void     ngcDelete(number *a, const coeffs r);
47void     ngcCoeffWrite(const coeffs r);
48
49#ifdef LDEBUG
50BOOLEAN  ngcDBTest(number a, const char *f, const int l, const coeffs r);
51#endif
52
53
54// Why is this here? who needs it?
55// number ngcMapQ(number from, const coeffs r, const coeffs aRing);
56#endif
57/* GMPCOMPLEX_H */
Note: See TracBrowser for help on using the repository browser.