Changeset 1234 for trunk/test/Suite.h


Ignore:
Timestamp:
Mar 15, 2008, 5:00:54 PM (14 years ago)
Author:
Peter
Message:

working on #223

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/Suite.h

    r1232 r1234  
    5454
    5555    /**
     56       \return true if \f$ |a-b| <= N * \epsilon * min(|a|,|b|) \f$
     57       where \f$ \epsilon \f$ is std::numeric_limits<double>().epsilon()
     58    */
     59    bool equal(double a, double b, unsigned int N=1);
     60
     61    double last_error_bound(void) const;
     62
     63    /**
    5664      \return true if test is ok
    5765    */
     
    7785    bool ok_;
    7886    std::ofstream* dev_null_;
     87    double last_error_bound_;
    7988
    8089  };
    81 
    82   /**
    83      \return true if \f$ |a-b| <= N * \epsilon * min(|a|,|b|) \f$
    84      where \f$ \epsilon \f$ is std::numeric_limits<double>().epsilon()
    85   */
    86   bool equal(double a, double b, unsigned int N=1);
    8790
    8891}}}
Note: See TracChangeset for help on using the changeset viewer.