find natural logarithm value of a number using log method of Math class - Java Language Basics

Java examples for Language Basics:Math

Description

find natural logarithm value of a number using log method of Math class

Demo Code


public class Main {
 
  public static void main(String[] args) {
   /*ww w. ja  va  2  s .com*/
     System.out.println("Natural logarithm value of 2 is : " + Math.log(2));
  }
}

Result


Related Tutorials