954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

What is the code for exponent in java?

In:

multiplication = var1 * var2
Division = var1 / var2

addition = var1 + var2
Subtraction = var1 - var2

exponentiation = ???

One more thing, how to read this one, isDigit?

Thanks in advance

ocreds
Newbie Poster
5 posts since Jul 2008
Reputation Points: 5
Solved Threads: 0
 
double a = Math.exp(b); //e^b

double c = Math.pow(a,b); //a^b


Go to this link: Math

javaAddict
Nearly a Senior Poster
Team Colleague
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You