Mercurial > octave-nkf
changeset 12791:610a4e780a19
codesprint: write 4 test for rcond
author | Jordi Gutiérrez Hermoso <jordigh@gmail.com> |
---|---|
date | Sat, 16 Jul 2011 11:07:15 -0500 |
parents | 5ecdb60ddf0f |
children | dc29b64668fa |
files | src/DLD-FUNCTIONS/rcond.cc |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/rcond.cc Sat Jul 16 10:42:19 2011 -0500 +++ b/src/DLD-FUNCTIONS/rcond.cc Sat Jul 16 11:07:15 2011 -0500 @@ -85,3 +85,12 @@ return retval; } + +/* + +%!assert( rcond (eye (2)), 1) +%!assert( rcond (ones (2)), 0) +%!assert( rcond ([1 1; 2 1]), 1/9) +%!assert( rcond (magic (4)), 0, eps) + +*/