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

Diff of /ginac/numeric.h

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

revision 1.41 by kreckel, Fri Nov 24 22:19:48 2000 UTC revision 1.42 by kreckel, Fri Dec 15 17:47:51 2000 UTC
# Line 168  public: Line 168  public:
168          int to_int(void) const;          int to_int(void) const;
169          long to_long(void) const;          long to_long(void) const;
170          double to_double(void) const;          double to_double(void) const;
171            cln::cl_N to_cl_N(void) const;
172          const numeric real(void) const;          const numeric real(void) const;
173          const numeric imag(void) const;          const numeric imag(void) const;
174          const numeric numer(void) const;          const numeric numer(void) const;
# Line 175  public: Line 176  public:
176          int int_length(void) const;          int int_length(void) const;
177          // converting routines for interfacing with CLN:          // converting routines for interfacing with CLN:
178          numeric(const cln::cl_N & z);          numeric(const cln::cl_N & z);
         operator cln::cl_N() const;  
179    
180  // member variables  // member variables
181    
# Line 284  inline bool is_cinteger(const numeric & Line 284  inline bool is_cinteger(const numeric &
284  inline bool is_crational(const numeric & x)  inline bool is_crational(const numeric & x)
285  { return x.is_crational(); }  { return x.is_crational(); }
286    
287    inline int to_int(const numeric & x)
288    { return x.to_int(); }
289    
290    inline long to_long(const numeric & x)
291    { return x.to_long(); }
292    
293    inline double to_double(const numeric & x)
294    { return x.to_double(); }
295    
296  inline const numeric real(const numeric & x)  inline const numeric real(const numeric & x)
297  { return x.real(); }  { return x.real(); }
298    

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42

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