changeset 11930:5032328e940b release-3-0-x

fix nchoosek test
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 29 Jan 2009 08:39:43 +0100
parents ec4877888285
children d7d30988b3ea
files scripts/specfun/nchoosek.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/specfun/nchoosek.m
+++ b/scripts/specfun/nchoosek.m
@@ -96,5 +96,5 @@
   endif
 endfunction
 
-%!assert (nchoosek(100,45), bincoeff(100,45))
+%!assert (nchoosek(100,45), bincoeff(100,45), -1e-14)
 %!assert (nchoosek(1:5,3),[1:3;1,2,4;1,2,5;1,3,4;1,3,5;1,4,5;2:4;2,3,5;2,4,5;3:5])