Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Plotting Plank's Radiance Formula' topicStudent Support Forum > General > "Plotting Plank's Radiance Formula"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Forum Moderator
email me
09/28/99 07:55am

>When I try and plot the following function, I get error messages as follows:
>
>Plot[(2*Pi*2.998e8*2.998e8*6.626e-34)/( x^5*(Exp[(6.626e-34*2.998e8)/(x*1.381e-23*293.15)]-1)), {x,1,10}]
>
>The errors (about three or four of them) say that some number is not a machine-sized real number. Does anyone know the way to solve this dilemma?

=====

Did you check to see if you function actually evaluates
to a number? For example, evaluating:

(2*Pi*2.998e8*2.998e8*6.626e-34)/(
x^5*(Exp[(6.626e-34*2.998e8)/(x*1.381e-23*293.15)]-1)) /. x-> 1

will show that Mathematica does not interpret your ''e''
notation as you expect.

Replacing e with 10^ gives a function that can be plotted.

Plot[(2*Pi*2.998 10^8*2.998 10^8*6.626 10^-34)/(
x^5*(Exp[(6.626 10^-34*2.998 10^8)/(x*1.381 10^-23*293.15)]-1)),
{x,1,10}]

Tom Zeller
Forum Moderator

URL: ,

Subject (listing for 'Plotting Plank's Radiance Formula')
Author Date Posted
Plotting Plank's Radiance Formula Matt Tilley 09/28/99 07:26am
Re: Plotting Plank's Radiance Formula Forum Modera... 09/28/99 07:55am
< Previous CommentHelp | Reply To Comment | Reply To Topic