1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica plot problem

  1. Jun 3, 2009 #1
    Hello guys,

    I'm doing a comparison between Planck's, Rayleigh's and Wien's formula, and I'm plotting the following function in mathematica

    Plot[{(2 h (v 10^11)^3)/c^2 10^17/(Exp[(h (v 10^11))/(k T)] - 1), (
    2 (v 10^11)^2)/c^2 k T 10^17, (2 h (v 10^11)^3)/
    c^2 Exp[-((h (v 10^11))/(k T))] 10^17}, {v, 0 10^0,
    5}, {PlotRange -> 2 10^0, PlotStyle -> Thick,
    AxesLabel -> {Frequency (10^11 Hz),
    Energy/surface\[Cross]time (10^-17 J/(m^2 s))}}]

    If you plot this, you'll see that the label is written as 100000000000 Hz.

    Can anyone tell me please how to write it as 10^11?

    I'm tired of trying, please help.

  2. jcsd
  3. Jun 3, 2009 #2
    Help guys! please!
  4. Jun 3, 2009 #3


    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    You can write text as "text" and Mathematica will plot exactly what you wrote (but will no longer interpret it as mathematics). You can find info like this in the Documentation Center built into Mathematica for every command (e.g., AxesLabel).
  5. Jun 3, 2009 #4
    I tried text, but it's still taking it as a number! I don't understand why!!!! :(
  6. Jun 3, 2009 #5
    Hey guys! come on! please help!
  7. Jun 3, 2009 #6


    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    Are you enclosing 10^11 in quotation marks? Works for me.
  8. Jun 3, 2009 #7
    That's a lot pal :), Problem solved :)
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook