Documentation

math.log1p() function

Flux 0.22.0+

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

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.