Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

public class Main {

    public static void main(String[] args) {

        double d1 = 0.0, d2 = -0.0, d3 = (1.0 / 0.0), d4 = 5;

        // returns Euler's number e raised to the power positive 0 
        System.out.println("Euler value of d1 = " + StrictMath.exp(d1));

        // returns Euler's number e raised to the power negative 0
        System.out.println("Euler value of d2 = " + StrictMath.exp(d2));

        // returns Euler's number e raised to the power infinity
        System.out.println("Euler value of d3 = " + StrictMath.exp(d3));

        // returns Euler's number e raised to the power 5
        System.out.println("Euler value of d4 = " + StrictMath.exp(d4));
    }
}