image thumbnail

nck

version 1.0.5 (27.6 KB) by JaeHyeok Park
Efficient calculation of combination or binomial coefficient, without direct calculating factorials.

17 Downloads

Updated 22 Feb 2022

View License

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

Cite As

JaeHyeok Park (2022). nck (https://www.mathworks.com/matlabcentral/fileexchange/105320-nck), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!