projects
/
scilab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
nchoosek(4,2) displayed nothing
[scilab.git]
/
scilab
/
modules
/
elementary_functions
/
macros
/
nchoosek.sci
diff --git
a/scilab/modules/elementary_functions/macros/nchoosek.sci
b/scilab/modules/elementary_functions/macros/nchoosek.sci
index
7cc6db0
..
4028701
100644
(file)
--- a/
scilab/modules/elementary_functions/macros/nchoosek.sci
+++ b/
scilab/modules/elementary_functions/macros/nchoosek.sci
@@
-115,7
+115,7
@@
function varargout = nchoosek(n, k, logFormat)
if lhs==2 | isdef("logFormat","l") then
varargout(1) = logb
end
- if lhs==1 & ~isdef("logFormat","l") | lhs==2 then
+ if lhs<=1 & ~isdef("logFormat","l") | lhs==2 then
varargout($+1) = b
end
endfunction