Plank's law - my computer is having trouble with the formula

Click For Summary
SUMMARY

The discussion centers on the application of Planck's law, specifically the formula for spectral radiance, f_λ(T) = (2πhc²/λ⁵) / (exp(hc/λkT) - 1). A user encountered computational difficulties when calculating the exponent due to an incorrect value for Planck's constant, initially using 6.626068e-24 instead of the correct 6.626068e-34. This error resulted in an unmanageable exponent value. The user was advised to compare the magnitudes of terms in the formula to identify dominant factors, which is a common approach in simplifying complex calculations.

PREREQUISITES
  • Understanding of Planck's law and its formula components
  • Familiarity with scientific notation and significant figures
  • Basic knowledge of exponential functions and logarithms
  • Proficiency in using a scientific calculator or programming language for calculations
NEXT STEPS
  • Review the derivation of Planck's law and its implications in physics
  • Learn how to use logarithmic transformations to simplify calculations
  • Explore numerical methods for handling large exponentials in programming languages like Python
  • Investigate the significance of precision in physical constants and their impact on calculations
USEFUL FOR

Physicists, students studying thermodynamics, and anyone interested in the application of Planck's law in real-world scenarios.

tony873004
Science Advisor
Gold Member
Messages
1,753
Reaction score
143
Plank's law -- my computer is having trouble with the formula

f_\lambda \left( T \right) = \frac{{2\pi hc^2 /\lambda ^5 }}{{\exp \left( {\frac{{hc}}{{\lambda kT}}} \right) - 1}}<br />

I'm guessing this thing wants wavelength in meters. So for a temperature of 5600 K and a wavelength of 0.5 um (5e-7 m), the part that I'm using as the exponent for e, {\frac{{hc}}{{\lambda kT}}}<br /> comes out to (6.626068e-24*2.99792458e8/(5e-7*1.3806503e-23*5600)) =51384823425.8871.

And e^51384823425.8871 is not a number my computer can calculate.

How can I use this formula?
 
Physics news on Phys.org
Not a complete solution- but worth trying.
ln(f(T))=ln(2pi h c^2/lambda^5)-hc/lambda k T

Accurate to a lot of sig. fig.

Compare the magnitude of the two terms on the RHS to see if one dominates by orders of magnitude.
 
Thanks. Someone in the math department at school recommended the same thing. However, my value for plank's constant turns out to be wrong. I must have made a typo. it's e-34, not e-24. This turns the value fed to exp( ) from5.138e10 into a managable 5.138.

Thanks for your reply.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
5K
Replies
1
Views
3K
  • · Replies 28 ·
Replies
28
Views
8K
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
9K
  • · Replies 12 ·
Replies
12
Views
14K
Replies
11
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
8
Views
18K
  • · Replies 1 ·
Replies
1
Views
6K