C(n, m)
Version 1.0.0.0 (481 Bytes) by
Andrew Church (immature aged student)
Combinations of 'm' items chosen from 'n' objects
Simple function "C.m" uses element wise division then multiplication instead of the factorial function allows for any size 'n' in C(n, m), so long as m is sufficiently close to 'n' or zero. Just needed for a few questions in Schroeder's Intro to Thermal Physics that need factorial(x) for x > MatLab's limit.
Cite As
Andrew Church (immature aged student) (2026). C(n, m) (https://au.mathworks.com/matlabcentral/fileexchange/62942-c-n-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2015b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Applications in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: Einstein Solids Thermal Calculator
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | change description |
