Home > Net >  How to get the rest of java Math funtions?
How to get the rest of java Math funtions?

Time:12-04

I am using the Eclipse IDE for all my programming at the moment and as some of my programs are now requiring some more complicated math I realized that I am missing some of the Math functions. The most important ones being pow(), acos(), and asin(). Any ideas on how to get them added in? All of my googling has been for not so far.

I have imported the class using java.lang.Math and while some methods are there I am missing some of them.

CodePudding user response:

Looks like codename1 overrides some of the java math functions.They can be accessed with codename1's MathUtil class. Thank you all for your time.

CodePudding user response:

Those functions are available from the java.lang.Math class. You could statically import them all - import static java.lang.Math.*;.

  • Related