[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
epsilon
From: |
John W. Eaton |
Subject: |
epsilon |
Date: |
Tue, 21 Mar 2000 02:47:33 -0600 (CST) |
On 20-Mar-2000, Ben Sapp <address@hidden> wrote:
| How do you access the 'eps' constant from a C++ file dynamically linked
| with Octave?
|
| I would like to have the following statement:
|
| if((my_var < 10*eps)||(my_var > 10*eps)){
| do something;
| }
Use the C macro DBL_EPSILON. That's how eps is defined.
jwe
-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.che.wisc.edu/octave/octave.html
How to fund new projects: http://www.che.wisc.edu/octave/funding.html
Subscription information: http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------
- epsilon, Ben Sapp, 2000/03/20
- epsilon,
John W. Eaton <=