Get Euler's number e raised to the power of a double value in Java

Description

The following code shows how to get Euler's number e raised to the power of a double value.

Example


/*w ww.j  a  v a  2  s .c om*/
public class Main {
  public static void main(String[] args) {

    System.out.println("exp(y)     = " + 
       Math.exp(0.2));
  }
}

The code above generates the following result.





















Home »
  Java Tutorial »
    Development »




Java Algorithms
Java Clipboard
Java Compiler
Java Desktop
Java Virtual Machine
Java Math
OS
Random
Java Robot
Java RuntimeMXBean
Java Timer
Java UUID
Java Internationalization