BINOMIAL (Binomial coefficient.)

版本 1.1.0.0 (1.6 KB) 作者: Mukhtar Ullah
Binomial coefficient of arrays
6.5K 次下载
更新时间 2010/10/20

查看许可证

BINOMIAL Binomial coefficient.

If the arguments are both non-negative integers with 0 <= K <= N, then
BINOMIAL(N, K) = N!/K!/(N-K)!, which is the number of distinct sets of
K objects that can be chosen from N distinct objects.
When N or K(or both) are N-D matrices, BINOMIAL(N, K) is the coefficient
for each pair of elements.

If N and K are integers that do not satisfy 0 <= K <= N, or N and K are
non-integers , then the general definition is used, that is

BINOMIAL(N, K) = GAMMA(N+1) / (GAMMA(K+1) / GAMMA(N-K+1))

If N is a non-negative integer, BINOMIAL(N) = BINOMIAL(N, 0:N)

BINOMIAL only supports floating point input arguments.

引用格式

Mukhtar Ullah (2024). BINOMIAL (Binomial coefficient.) (https://www.mathworks.com/matlabcentral/fileexchange/5966-binomial-binomial-coefficient), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Arithmetic Operations 的更多信息
致谢

启发作品: Monte Carlo Error Propagation

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Code cleanup.

1.0.0.0

a minor improvement