/[GiNaC]/ginac/numeric.h
ViewVC logotype

Diff of /ginac/numeric.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by cbauer, Tue Nov 9 19:57:04 1999 UTC revision 1.2 by cbauer, Wed Nov 10 16:35:12 1999 UTC
# Line 1  Line 1 
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
# Line 304  ex CatalanEvalf(void); Line 319  ex CatalanEvalf(void);
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__

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

Christian Bauer">Christian Bauer
ViewVC Help
Powered by ViewVC 1.1.15