Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

C Library Problem

  1. Oct 7, 2011 #1
    I was working on an assignment and i needed to use a constant that is defined in the math.h library (M_E). But when i tried to use it, the compiler took it as a normal variable that had not been initialized or anything. So my question is, is this just because of the compiler i was using, or is there something wrong with the library on my laptop?
  2. jcsd
  3. Oct 7, 2011 #2


    Staff: Mentor

    According to this wiki article (http://en.wikipedia.org/wiki/Math.h), the M_* constants aren't standard. It also says,
  4. Oct 8, 2011 #3
    Thanks for the answer, that cleared it up for me.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook