이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
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
Inspired by python reduce implementation
modified using better alrorithm
인용 양식
JaeHyeok Park (2026). nck (https://kr.mathworks.com/matlabcentral/fileexchange/105320-nck), MATLAB Central File Exchange. 검색 날짜: .
| 버전 | 퍼블리시됨 | 릴리스 정보 | Action |
|---|---|---|---|
| 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 |
|
