math.log1p() function
The math.log1p()
function returns the natural logarithm of 1 plus its argument x
.
It is more accurate than math.log(x: 1 + x)
when x
is near zero.
Output data type: Float
import "math"
math.log1p(x: 0.56)
// Returns 0.44468582126144574
Parameters
x
The value used in the operation.
Special cases
math.log1p(x: +Inf) // Returns +Inf
math.log1p(x: ±0) // Returns ±0
math.log1p(x: -1) // Returns -Inf
math.log1p(x: <-1) // Returns NaN
math.log1p(x: NaN) // Returns NaN
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
InfluxDB Cloud customers can contact InfluxData Support.