Mercurial > hg > octave-lyh
diff scripts/control/system/is_detectable.m @ 7795:df9519e9990c
Handle single precision eps values
author | David Bateman <dbateman@free.fr> |
---|---|
date | Mon, 12 May 2008 22:57:11 +0200 |
parents | aeeb646f6538 |
children |
line wrap: on
line diff
--- a/scripts/control/system/is_detectable.m +++ b/scripts/control/system/is_detectable.m @@ -59,7 +59,11 @@ endif if (! exist ("tol")) - tol = 200*eps; + if (isa (a, "single") || isa (c, "single")) + tol = 200 * eps("single"); + else + tol = 200 * eps; + endif endif retval = is_stabilizable (a', c', tol, dflg);