Qu

log1p

Builtin index · Core maths

result = log1p(x)

Input: x · Output: result

What it is

ln(1 + x), computed so it stays accurate for x near zero (log1p(1e-15) does not underflow to exactly 0, unlike naively computing 1.0 + x first). x is a scalar, Vec, or Mat/Signal.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
result = log1p(x)
x scalar, Vec, Mat, or Signalnot documented yet
result —
Returns exactly the same type and shape as x.

Examples

No documentation example calls this form yet. The Core maths chapter is where one belongs.