| 1 |
/** @file numeric.h |
/** @file numeric.h |
| 2 |
* |
* |
| 3 |
* Makes the interface to the underlying bignum package available. */ |
* Makes the interface to the underlying bignum package available. |
| 4 |
|
* |
| 5 |
|
* GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany |
| 6 |
|
* |
| 7 |
|
* This program is free software; you can redistribute it and/or modify |
| 8 |
|
* it under the terms of the GNU General Public License as published by |
| 9 |
|
* the Free Software Foundation; either version 2 of the License, or |
| 10 |
|
* (at your option) any later version. |
| 11 |
|
* |
| 12 |
|
* This program is distributed in the hope that it will be useful, |
| 13 |
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
|
* GNU General Public License for more details. |
| 16 |
|
* |
| 17 |
|
* You should have received a copy of the GNU General Public License |
| 18 |
|
* along with this program; if not, write to the Free Software |
| 19 |
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 20 |
|
*/ |
| 21 |
|
|
| 22 |
#ifndef _NUMERIC_H_ |
#ifndef __GINAC_NUMERIC_H__ |
| 23 |
#define _NUMERIC_H_ |
#define __GINAC_NUMERIC_H__ |
| 24 |
|
|
| 25 |
#include <strstream> |
#include <strstream> |
| 26 |
|
|
| 27 |
#define HASHVALUE_NUMERIC 0x80000001U |
#define HASHVALUE_NUMERIC 0x80000001U |
| 28 |
|
|
|
class numeric; // Forward declaration, so basic doesn't argue... |
|
| 29 |
class cl_N; // We want to include cln.h only in numeric.cpp in order to |
class cl_N; // We want to include cln.h only in numeric.cpp in order to |
| 30 |
// avoid namespace pollution and keep compile-time low. |
// avoid namespace pollution and keep compile-time low. |
|
#include "basic.h" |
|
| 31 |
|
|
| 32 |
/** This class is used to instantiate a global object Digits which |
/** This class is used to instantiate a global object Digits which |
| 33 |
* behaves just like Maple's Digits. We need an object rather than a |
* behaves just like Maple's Digits. We need an object rather than a |
| 319 |
#define ex_to_numeric(X) static_cast<numeric const &>(*(X).bp) |
#define ex_to_numeric(X) static_cast<numeric const &>(*(X).bp) |
| 320 |
|
|
| 321 |
|
|
| 322 |
#endif // ndef _NUMERIC_H_ |
#endif // ndef __GINAC_NUMERIC_H__ |