Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: Using exponents
Reply to topic
Author Message
GMartin



Joined: Feb 5, 2010
Posts: 308

PostPosted: Aug 21, 2015 1:36 PM    Post subject: Using exponents

I want to be able raise a value to the 3rd power. I know I can use expression evaluator and use (In1*In1*In1). I searched the forum for this but found nothing.

Is there a way to use math.Pow or another function to do this,

THanks

George
GMartin



Joined: Feb 5, 2010
Posts: 308

PostPosted: Aug 21, 2015 1:42 PM    Post subject:

I just got it. Found it on the web (after long search)

Lower case p pow.

Would the proper format be

math.pow (in1,3) to raise input one to the 3rd power

George
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: Aug 21, 2015 1:47 PM    Post subject:

Yes, it can be used like that:

Math.pow(In1, 3)

Full documentation for all Math functions is here:

http://docs.oracle.com/javase/7/docs/api/java/lang/Math.html
GMartin



Joined: Feb 5, 2010
Posts: 308

PostPosted: Aug 21, 2015 2:20 PM    Post subject:

Jarek,

Thanks, as always, for the prompt reply

George
Reply to topic