Changeset 990 for trunk/src/real.h


Ignore:
Timestamp:
Sep 28, 2011, 2:59:39 AM (11 years ago)
Author:
sam
Message:

core: implement sin(), cos() and abs() for reals and fix a crash in the
addition and subtraction operators occurring when exponents were too
different.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/real.h

    r988 r990  
    5454    bool operator >=(real const &x) const;
    5555
     56    friend real fabs(real const &x);
     57
    5658    friend real fres(real const &x);
    5759    friend real sqrt(real const &x);
    5860    friend real exp(real const &x);
     61
     62    friend real sin(real const &x);
     63    friend real cos(real const &x);
    5964
    6065    void print(int ndigits = 150) const;
Note: See TracChangeset for help on using the changeset viewer.