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