C(n, m)

Combinations of 'm' items chosen from 'n' objects
42 Downloads
Updated 15 May 2017

View License

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 Linux
Categories
Find more on Applications in Help Center and MATLAB Answers
Acknowledgements

Inspired: Einstein Solids Thermal Calculator

Version Published Release Notes
1.0.0.0

change description