BINOMIAL (Binomial coefficient.)

Binomial coefficient of arrays

現在この提出コンテンツをフォロー中です。

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 (2026). BINOMIAL (Binomial coefficient.) (https://jp.mathworks.com/matlabcentral/fileexchange/5966-binomial-binomial-coefficient), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを与えたファイル: Monte Carlo Error Propagation

カテゴリ

Help Center および MATLAB AnswersArithmetic Operations についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.1.0.0

Code cleanup.

1.0.0.0

a minor improvement