Find exponential value of a number using Math.exp in Java

Description

The following code shows how to find exponential value of a number using Math.exp.

Example


//from   w  ww . j a  v  a  2s .c om
public class Main {
  public static void main(String[] args) {
    System.out.println("Exponential of 2 is : " + Math.exp(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