This preview shows page 1. Sign up to view the full content.
Unformatted text preview: # Calculate number of ways to arrange q1 quanta in object 1: ways1 =combin(q1+N1-1,q1) # Calculate number of ways to arrange q2 quanta in object 2: ways2 =combin(q2+N2-1,q2) # Plot number of ways to arrange energy in the two objects: # Now plot the logarithms ("log" in Python is natural logarithm): log1graph.plot( pos=(q1,log(ways1)) ) log2graph.plot( pos=(q1,log(ways2)) ) loggraph.plot( pos=(q1,log(ways1*ways2)) ) q1 = q1+1...
View Full Document
This note was uploaded on 01/28/2012 for the course PY 205M taught by Professor Brown during the Spring '08 term at N.C. State.
- Spring '08