Einstein Solids Thermal Calculator
for Daniel V Schroeder's 'An Introduction to Thermal Physics', chapter 2, two state system Einstein solid.
Calculate number of micro-states and probabilities of corresponding macro-states
The possible combinations of energy distribution among oscillators requires the use of 'factorial' calculations beyond MatLab's limit of factorial(170). 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.
Cite As
Andrew Church (immature aged student) (2026). Einstein Solids Thermal Calculator (https://au.mathworks.com/matlabcentral/fileexchange/62940-einstein-solids-thermal-calculator), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by: C(n, m)
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
