Core Java Tutorial

Core Java Tutorial

Math Example Program for log1p(double x)

[java]
/**
@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
}
}
[/java]

Output:
1.60943