Changeset b7e838 in git for kernel/mpr_complex.h


Ignore:
Timestamp:
Jul 3, 2007, 4:45:57 PM (17 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
a3181c6c6f9d31d0bfc59b709eed83fcecba79c5
Parents:
0ea97ea490acc1915ccaedd3839aadce86cf48e1
Message:
*hannes: test division by 0


git-svn-id: file:///usr/local/Singular/svn/trunk@10159 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/mpr_complex.h

    r0ea97e rb7e838  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: mpr_complex.h,v 1.4 2004-07-30 12:18:50 Singular Exp $ */
     6/* $Id: mpr_complex.h,v 1.5 2007-07-03 14:45:57 Singular Exp $ */
    77
    88/*
     
    117117  inline int sign()    // t>0:+1, t==0:0, t<0:-1
    118118  { return mpf_sgn( t ); };
    119  
     119
    120120  bool isZero();  // t == 0 ?
    121121  bool isOne();   // t == 1 ?
     
    127127  inline const mpf_t *mpfp() const { return &t; };
    128128  inline mpf_t *_mpfp() { return &t; };
    129  
     129
    130130  inline operator double() { return mpf_get_d( t ); };
    131131  inline operator double() const { return mpf_get_d( t ); };
     
    140140    return 0;
    141141  };
    142 #endif 
     142#endif
    143143
    144144private:
     
    226226  inline void imag( gmp_float val ) { i = val; }
    227227
     228
     229  inline bool isZero() { return (r.isZero() && i.isZero()); }
    228230  void SmallToZero();
    229231};
Note: See TracChangeset for help on using the changeset viewer.