Einstein Solids Thermal Calculator

Calculate Thermal Macro and Micro States
132 Downloads
Updated 15 May 2017

View License

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
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Thermodynamics & Statistical Physics in Help Center and MATLAB Answers
Acknowledgements

Inspired by: C(n, m)

Version Published Release Notes
1.3.0.0

corrected Plot x axis values
q_A now 0 to q_total, instead of 1 to q_total + 1
q_A equilibrium value show by plot had been wrong by +1

1.2.0.0

add png

1.1.0.0

included code for the function "C.m" commented out
none

1.0.0.0