How to Use Math.exp() in Java


In this example we will show you how to use math.exp() in Java.

Source Code

package com.beginner.examples;

public class Exp {
  public static void main(String[] args){
    System.out.println(Math.exp(4)); // use math.exp()
  }
}

Output:

54.598150033144236
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments