9:53 am - Wednesday November 21, 2018

Math Example Program for log1p(double x)

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044
/**
@Author:Candid
@description:Math Example program for loglp(double x)
*/
public class Math
{
public static void main(String args[])
{
double x=4;                    //declare value in double
double y=StrictMath.log1p(x);  //assign a value of Math.log1p(x)in y
System.out.println(y);         //to print value of y
}
}

Output:
1.60943

Filed in: Core Java Tutorial

Comments are closed.