Mercurial > octave-nkf
comparison scripts/miscellaneous/bincoeff.m @ 7385:8b7b4f58199f
[project @ 2008-01-15 20:49:09 by jwe]
author | jwe |
---|---|
date | Tue, 15 Jan 2008 20:49:10 +0000 |
parents | a1dbe9d80eee |
children | 69e27978114a |
comparison
equal
deleted
inserted
replaced
7384:47c919254791 | 7385:8b7b4f58199f |
---|---|
100 endfunction | 100 endfunction |
101 | 101 |
102 %!assert(bincoeff(4,2), 6) | 102 %!assert(bincoeff(4,2), 6) |
103 %!assert(bincoeff(2,4), 0) | 103 %!assert(bincoeff(2,4), 0) |
104 %!assert(bincoeff(0.4,2), -.12, 8*eps) | 104 %!assert(bincoeff(0.4,2), -.12, 8*eps) |
105 | |
106 %!assert(bincoeff (5, 2) == 10 && bincoeff (50, 6) == 15890700); | |
107 | |
108 %!error bincoeff (); | |
109 | |
110 %!error bincoeff (1, 2, 3); | |
111 |