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

Diff of /ginac/numeric.h

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

revision 1.18 by cbauer, Wed Jan 19 19:46:57 2000 UTC revision 1.19 by cbauer, Fri Jan 21 15:20:31 2000 UTC
# Line 116  public: Line 116  public:
116      explicit numeric(unsigned long i);      explicit numeric(unsigned long i);
117      explicit numeric(long numer, long denom);      explicit numeric(long numer, long denom);
118      explicit numeric(double d);      explicit numeric(double d);
119      explicit numeric(char const *);      explicit numeric(const char *);
120      numeric(cl_N const & z);      numeric(cl_N const & z);
121    
122      // functions overriding virtual functions from bases classes      // functions overriding virtual functions from bases classes
# Line 128  public: Line 128  public:
128      void printcsrc(ostream & os, unsigned type, unsigned precedence=0) const;      void printcsrc(ostream & os, unsigned type, unsigned precedence=0) const;
129      bool info(unsigned inf) const;      bool info(unsigned inf) const;
130      ex evalf(int level=0) const;      ex evalf(int level=0) const;
131      ex diff(symbol const & s) const;      ex diff(const symbol & s) const;
132      ex normal(lst &sym_lst, lst &repl_lst, int level=0) const;      ex normal(lst &sym_lst, lst &repl_lst, int level=0) const;
133      numeric integer_content(void) const;      numeric integer_content(void) const;
134      ex smod(const numeric &xi) const;      ex smod(const numeric &xi) const;
135      numeric max_coefficient(void) const;      numeric max_coefficient(void) const;
136  protected:  protected:
137      int compare_same_type(basic const & other) const;      int compare_same_type(const basic & other) const;
138      bool is_equal_same_type(basic const & other) const;      bool is_equal_same_type(const basic & other) const;
139      unsigned calchash(void) const {      unsigned calchash(void) const {
140          hashvalue=HASHVALUE_NUMERIC;          hashvalue=HASHVALUE_NUMERIC;
141          return HASHVALUE_NUMERIC;          return HASHVALUE_NUMERIC;
# Line 161  public: Line 161  public:
161      const numeric & operator=(long i);      const numeric & operator=(long i);
162      const numeric & operator=(unsigned long i);      const numeric & operator=(unsigned long i);
163      const numeric & operator=(double d);      const numeric & operator=(double d);
164      const numeric & operator=(char const * s);      const numeric & operator=(const char * s);
165      numeric inverse(void) const;      numeric inverse(void) const;
166      int csgn(void) const;      int csgn(void) const;
167      int compare(const numeric & other) const;      int compare(const numeric & other) const;
# Line 204  protected: Line 204  protected:
204    
205  extern const numeric some_numeric;  extern const numeric some_numeric;
206  extern const numeric I;  extern const numeric I;
207  extern type_info const & typeid_numeric;  extern const type_info & typeid_numeric;
208  extern _numeric_digits Digits;  extern _numeric_digits Digits;
209    
210  #define is_a_numeric_hash(x) ((x)==HASHVALUE_NUMERIC)  #define is_a_numeric_hash(x) ((x)==HASHVALUE_NUMERIC)

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

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