Which Program is Best for Creating Tables and Graphs with Large Numbers?

  • Thread starter Thread starter Crush1986
  • Start date Start date
  • Tags Tags
    Computer Program
Click For Summary

Homework Help Overview

The discussion revolves around creating tables and graphs for the multiplicities of a system with two Einstein solids, particularly focusing on the challenges posed by large numbers, such as 300!. Participants are exploring suitable software alternatives to Excel for handling these calculations.

Discussion Character

  • Exploratory, Assumption checking, Conceptual clarification

Approaches and Questions Raised

  • Participants discuss the limitations of Excel for calculating large factorials and suggest alternatives like symbolic math packages. There is also mention of using Stirling's approximation for large numbers and its implications for the calculations.

Discussion Status

Some participants have offered guidance on using symbolic math software and approximations, while others are sharing their experiences with the limitations of their current resources. There is an ongoing exploration of the best methods to visualize the multiplicities without losing accuracy.

Contextual Notes

Participants note the constraints of needing to work with large numbers directly and the challenges of finding suitable educational resources that provide examples relevant to their studies in thermal physics.

Crush1986
Messages
205
Reaction score
10

Homework Statement


So, I want to make a table and a graph of the multiplicities of a system with two Einstein Solids. I was trying to use Excel but the numbers I guess were too big (300!) being the biggest. There are many more problems I'd like to do where there will be larger numbers too. Can anyone suggest a good program that I could use to achieve these goals? Thank you I appreciate it!

Homework Equations


(q+N-1)!/q!*(N-n)!

The Attempt at a Solution


Tried in excel and got error #NUM![/B]
 
Physics news on Phys.org
Crush1986 said:

Homework Statement


So, I want to make a table and a graph of the multiplicities of a system with two Einstein Solids. I was trying to use Excel but the numbers I guess were too big (300!) being the biggest. There are many more problems I'd like to do where there will be larger numbers too. Can anyone suggest a good program that I could use to achieve these goals? Thank you I appreciate it!

Homework Equations


(q+N-1)!/q!*(N-n)!

The Attempt at a Solution


Tried in excel and got error #NUM![/B]
It's not entirely clear what is required to complete your task.

If you want to calculate with the factorials of large numbers, like 300!, Excel is not the tool to use. You'll either have to do some separate off-sheet simplifications or use a symbolic math package, like Maple, MathCAD, or Mathematica. These symbolic math packages can work through the arithmetic and even evaluate 300! if that's what you desire.
 
Generally, when working with such numbers, you don't really need all the digits of the value and you can make do with a (very good) approximation using Stirlings's formula:
$$ln(n!) = n\ln n - n $$and if n is big enough, you can even omit the last term (odd as it may seem).
 
BvU said:
Generally, when working with such numbers, you don't really need all the digits of the value and you can make do with a (very good) approximation using Stirlings's formula:
$$ln(n!) = n\ln n - n $$and if n is big enough, you can even omit the last term (odd as it may seem).
Aye, it's a good idea. The problems I wanted to do though want it done with a computer and with the multiplicities without taking the natural log unfortunately :(. I'm just not that great with any other program at setting up calculations, tables, and making graphs. If only Excel could just handle very large numbers.. ugh.
 
I see. On the other hand, in considerations on Einstein solids such as here , they jump to Stirling pretty quickly too !
 
BvU said:
I see. On the other hand, in considerations on Einstein solids such as here , they jump to Stirling pretty quickly too !
Oh yeah. Looks precisely like the book I'm using to self-study at the moment. I'm starting the class 9/28 I believe. Just getting a head start because I heard that it's a pretty hard class. The book is "Thermal Physics" By Shroeder. So far I like it, it's easy to read, and I can follow pretty much all of the derivations. The book lacks hugely though in examples and problems. I've been trying to find another introductory book that covers the same content and has examples. Haven't really found a suitable one though. I have a few other thermo books but most are a tad more advanced. Also they don't have many problems either.
 
Well, at least I can guess where the 300 comes from: figure 2.5 ? So for
##\Omega_A (q_A = 100) = {(100 + 300 - 1)!\over 100 ! (300-1)! }## we have $$
\ln\Omega = 399 \ln 399 - 399 - (100 \ln 100 - 100 + 299 \ln 299 - 299) = 224.65 \ \Rightarrow \Omega = 3.7 \times 10^{97} $$ not so good -- seemingly (*).

If we fall back to the more accurate version (##
ln(n!) = n\ln n - n + {1\over 2} \ln(n\pi) ##), that becomes ##1.68 \times 10^{96}##, so spot on. Same for the other numbers.

(*) Don't let this lure you into thinking Stirling is useless: in statistical physics you deal with the order of NA particles, not with a few hundred. But even here, the figure looks exactly the same: half-width is the same, etc. And the entropy is ##k\ln\Omega## so that's practically right also !
 
Thx! Yah I was about to give it a try using the approximations of the numbers soon. To see how closely the graph looked to 2.5. I had read that it wouldn't be as sharp. But at least it would show me visually which multiplicies were the most probable.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
Replies
45
Views
7K
  • · Replies 7 ·
Replies
7
Views
4K