943,564 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 22076
  • Java RSS
Aug 26th, 2008
0

What is the code for exponent in java?

Expand Post »
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
Reputation Points: 5
Solved Threads: 0
Unverified User
ocreds is offline Offline
5 posts
since Jul 2008
Aug 26th, 2008
0

Re: What is the code for exponent in java?

Java Syntax (Toggle Plain Text)
  1. double a = Math.exp(b); //e^b
  2.  
  3. double c = Math.pow(a,b); //a^b

Go to this link: Math
Last edited by javaAddict; Aug 26th, 2008 at 3:50 am.
Sponsor
Featured Poster
Reputation Points: 1014
Solved Threads: 446
Nearly a Senior Poster
javaAddict is offline Offline
3,258 posts
since Dec 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Help:find repeating substrings in sting
Next Thread in Java Forum Timeline: Help me to get the loCale





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC