find the natural log of 23 with a suitable variable [in Java programming]
Answers
Answered by
2
Answer:
The java.lang.Math.log(double a) returns the natural logarithm (base e) of a double value. Special cases:
If the argument is NaN or less than zero, then the result is NaN.
If the argument is positive infinity, then the result is positive infinity.
If the argument is positive zero or negative zero, then the result is negative infinity.
Declaration
Following is the declaration for java.lang.Math.log() method
public static double log(double a)
Parameters
a − a value
Return Value
This method returns the value ln a, the natural logarithm of a.
Exception
NA
Example
The following example shows the usage of lang.Math.log() method.
Answered by
9
Answer:
Math.log(23);
Hope it helps
Similar questions