Math.log()

Math.log() returns natural log value of input number with base e.
Syntax
Math.log(input_number)
Here are some examples with different type of numbers.
System.out.println(Math.log(4));   //1.3862943611198906 
System.out.println(Math.log(1));   //0.0
System.out.println(Math.log(0));   //-Infinity
System.out.println(Math.log(4.12));//1.415853163361435
Using negative input numbers
System.out.println(Math.log(-4.12));  //NaN 
System.out.println(Math.log(-1));     //NaN


All Math functions

Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com



    Post your comments , suggestion , error , requirements etc here




    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2024 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer