nck

버전 1.0.5 (27.6 KB) 작성자: JaeHyeok Park
Efficient calculation of combination or binomial coefficient, without direct calculating factorials.
다운로드 수: 27
업데이트 2022/2/22

라이선스 보기

Efficient calculation of combination or binomial coefficient, without direct calculating factorials.
Currently, this module will not give very accurate result (see the discussion page below)
usage:
>> nck(7,5)
21
modified using better alrorithm

인용 양식

JaeHyeok Park (2026). nck (https://kr.mathworks.com/matlabcentral/fileexchange/105320-nck), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2021b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
버전 게시됨 릴리스 정보
1.0.5

changed description

1.0.4

merged multiply and divide calculation in one line

1.0.3

adopt method described in https://www.geeksforgeeks.org/space-and-time-efficient-binomial-coefficient/

1.0.2

changed loop endpoint

1.0.1

minor change in description

1.0.0