bicoeff references nchoosek

Francesco Potortì Potorti at isti.cnr.it
Mon Dec 1 09:03:34 CST 2008


Hmm.  The comment has a typo: should be bincoeff, not bicoeff...


# HG changeset patch
# User Francesco Potortì <pot at gnu.org>
# Date 1228143714 -3600
# Node ID 274cc925b214fdf093717911a32dcd743d8d29c3
# Parent  021be2026afac53045210fb2669331fbe6414079
bicoeff references nchoosek

diff -r 021be2026afa -r 274cc925b214 scripts/ChangeLog
--- a/scripts/ChangeLog	Mon Dec 01 15:42:55 2008 +0100
+++ b/scripts/ChangeLog	Mon Dec 01 16:01:54 2008 +0100
@@ -1,4 +1,6 @@ 2008-12-01  Francesco Potortì  <pot at gnu.
 2008-12-01  Francesco Potortì  <pot at gnu.org>
+
+	* miscellaneous/bincoeff.m: Make a reference to nchoosek.
 
 	* specfun/nchoosek.m: Add checks for numeric, integer arguments
 	with correct bounds and relative tests.
diff -r 021be2026afa -r 274cc925b214 scripts/miscellaneous/bincoeff.m
--- a/scripts/miscellaneous/bincoeff.m	Mon Dec 01 15:42:55 2008 +0100
+++ b/scripts/miscellaneous/bincoeff.m	Mon Dec 01 16:01:54 2008 +0100
@@ -48,6 +48,11 @@
 ##      @result{} 10
 ## @end group
 ## @end example
+##
+## In most cases, for small scalar integer arguments, the @code{nchoosek}
+## function is faster.  It also warns about loss of precision for big arguments.
+##
+## @seealso{nchoosek}
 ## @end deftypefn
 
 ## Author: KH <Kurt.Hornik at wu-wien.ac.at>
@@ -108,4 +113,3 @@ endfunction
 %!error bincoeff ();
 
 %!error bincoeff (1, 2, 3);
-

-- 
Francesco Potortì (ricercatore)        Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR          Fax:   +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa         Email: Potorti at isti.cnr.it
(entrance 20, 1st floor, room C71)     Web:   http://fly.isti.cnr.it/


More information about the Octave-maintainers mailing list