Find exponential value of a number using Math.exp - Java Language Basics

Java examples for Language Basics:Math

Description

Find exponential value of a number using Math.exp

Demo Code


public class Main {
 
  public static void main(String[] args) {
   /*ww  w.j  a v  a 2  s  .  c  om*/
     System.out.println("Exponential of 2 is : " + Math.exp(2));
  }
}

Result


Related Tutorials