PHP log1p() FunctionThe log1p() function is predefined php math function which returns log(1+number). It computes accurate even when the value of $number is close to zero. Syntax:
Example1Output: Your number is: 6 By using log10() function your number is : 1.9459101490553 Example2Output: Your number is: -0.3 By using log10() function your number is : -0.35667494393873 Example3Output: Your number is: 2.7183 By using log10() function your number is : 1.3132665745863 Example4Output: Your number is: 0 By using log10() function your number is : 0
Next TopicPHP Math
|