source: git/libpolys/coeffs/gnumpc.h @ 014b65

fieker-DuValspielwiese
Last change on this file since 014b65 was 014b65, checked in by Mohamed Barakat <mohamed.barakat@…>, 13 years ago
- moved misc,reporter,resources,coeffs,polys -> (new) libpolys (Hans agreed) - migrated to automake in coeffs, misc status: everything builds (except polys) todo: . migrate resources and reporter to automake . create autoconf macros for omalloc, factory, and libpolys
  • 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
18
19// Private interface should be hidden!!!
20     
21/// Note: MAY NOT WORK AS EXPECTED!
22BOOLEAN  ngcGreaterZero(number za, const coeffs r); 
23BOOLEAN  ngcGreater(number a, number b, const coeffs r);
24BOOLEAN  ngcEqual(number a, number b, const coeffs r);
25BOOLEAN  ngcIsOne(number a, const coeffs r);
26BOOLEAN  ngcIsMOne(number a, const coeffs r);
27BOOLEAN  ngcIsZero(number za, const coeffs r);
28number   ngcInit(int i, const coeffs r);
29int      ngcInt(number &n, const coeffs r);
30number   ngcNeg(number za, const coeffs r);
31number   ngcInvers(number a, const coeffs r);
32number   ngcPar(int i, const coeffs r);
33number   ngcAdd(number la, number li, const coeffs r);
34number   ngcSub(number la, number li, const coeffs r);
35number   ngcMult(number a, number b, const coeffs r);
36number   ngcDiv(number a, number b, const coeffs r);
37void     ngcPower(number x, int exp, number *lu, const coeffs r);
38number   ngcCopy(number a, const coeffs r);
39number   ngc_Copy(number a, coeffs r);
40const char * ngcRead (const char *s, number *a, const coeffs r);
41void     ngcWrite(number &a, const coeffs r);
42number   ngcRePart(number a, const coeffs r);
43number   ngcImPart(number a, const coeffs r);
44
45void     ngcDelete(number *a, const coeffs r);
46
47#ifdef LDEBUG
48BOOLEAN  ngcDBTest(number a, const char *f, const int l, const coeffs r);
49#endif
50
51
52// Why is this here? who needs it?
53// number ngcMapQ(number from, const coeffs r, const coeffs aRing);
54#endif
55/* GMPCOMPLEX_H */
Note: See TracBrowser for help on using the repository browser.