BINOMIAL (Binomial coefficient.)

버전 1.1.0.0 (1.65 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에 대해 자세히 알아보기

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