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
AI Thread Summary
For creating tables and graphs involving large numbers, such as 300!, Excel is inadequate due to its limitations with factorial calculations. Users recommend symbolic math software like Maple, MathCAD, or Mathematica, which can handle large numbers and perform necessary calculations. While Stirling's approximation can simplify calculations, the original request is for exact values without logarithmic transformations. The discussion also touches on the challenges of finding suitable textbooks for self-study in thermal physics, highlighting the need for more examples and problems. Ultimately, exploring these software options and approximations will help in visualizing the multiplicities effectively.
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.
 
Back
Top