Menu

Math.exp() or Math.pow() available?

Help
2008-02-12
2013-04-08
  • Frank Plohmann

    Frank Plohmann - 2008-02-12

    I jut ran into something where I need to calculate e^x.

    Since I'm not able to use the Java math library for Math.exp(x) or Math.pow(2.718281828459045, x) I wonder how to do this in JRobots. I could not find any replacement function.

    Any hints?

     
    • Frank Plohmann

      Frank Plohmann - 2008-02-12

      Sorry, I did not looked so far at the bottom of the docs...

      This should do the work I hope. ;)

      > double exp(double value)  - returns the exp

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.