Mercurial > hg > octave-nkf
changeset 1872:d5ba1bd06584
[project @ 1996-02-04 12:52:14 by jwe]
author | jwe |
---|---|
date | Sun, 04 Feb 1996 12:55:04 +0000 |
parents | bed9f3e11011 |
children | dc859604b19b |
files | liboctave/LSODE.h liboctave/NLEqn.h src/fsolve.cc |
diffstat | 3 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/LSODE.h +++ b/liboctave/LSODE.h @@ -32,6 +32,7 @@ class ostream; #endif +#include <cfloat> #include <cmath> #include "ODE.h"
--- a/liboctave/NLEqn.h +++ b/liboctave/NLEqn.h @@ -57,6 +57,9 @@ void set_default_options (void) { x_tolerance = ::sqrt (DBL_EPSILON); } + void set_options (const NLEqn_options& opt) + { x_tolerance = opt.x_tolerance; } + void set_tolerance (double val) { x_tolerance = (val > 0.0) ? val : ::sqrt (DBL_EPSILON); }