Mercurial > hg > octave-lyh
diff liboctave/NLEqn.h @ 1872:d5ba1bd06584
[project @ 1996-02-04 12:52:14 by jwe]
author | jwe |
---|---|
date | Sun, 04 Feb 1996 12:55:04 +0000 |
parents | 0e095fed283c |
children | 1b57120c997b |
line wrap: on
line diff
--- 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); }