I\'m trying to use this formula in JAVA : (-ln(1-L))/L I\'m not sure how to use ln in java.
Math.log(d) returns the natural logarithm (base e) of a double value.
So the java code will be,
double result = (-Math.log(1-L))/L;
(but note that it's better to have variable names in lower-case - i.e. l instead of L)
l
L