Skip navigation
_,~\'`-._
Currently Being Moderated

Math.pow(Math.E, time)

Jun 5, 2012 2:34 PM

Tags: #error #time #zero #divide #power #expression #exponential #math.pow

Hi folks!

 

The expression

 

"Math.pow( Math.E, time )" keeps giving me a "divide by zero" error.

 

This seems to be similar to problems others have had, but the other solutions don't quite work in my case, since Math.E isn't negative.  "time" of course is a non-integer, but the expression doesn't even work for me if I replace it with "Math.ceil(time)." 

 

Can anybody tell me what I'm missing?  Thanks in advance!

 

--S

 
Replies
  • Currently Being Moderated
    Jun 5, 2012 3:17 PM   in reply to _,~\'`-._

    I don't get that error. Is that your entire expression? Do you get it with Math.exp(time)?

     

    Dan

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 5, 2012 3:35 PM   in reply to _,~\'`-._

    I can get that error if my slider for b goes above 44, but at 44 the expression is generating some ridicuously huge numbers, so there's probably some kind of JavaScript overflow going on.

     

    Dan

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points