Skip to content

Latest commit

 

History

History
81 lines (44 loc) · 1.37 KB

log.adoc

File metadata and controls

81 lines (44 loc) · 1.37 KB

log, log2, log10, log1p, logb

Logarithm functions.

gentype log(gentype)

gentype log2(gentype)

gentype log10(gentype)

gentype log1p(gentype x)

gentype logb(gentype x)

gentype half_log(gentype x)

gentype half_log2(gentype x)

gentype half_log10(gentype x)

gentype native_log(gentype x)

gentype native_log2(gentype x)

gentype native_log10(gentype x)

Description

log computes natural logarithm.

log2 computes a base 2 logarithm.

log10 computes a base 10 logarithm.

log1p computes loge(1.0 + x).

logb computes the exponent of x, which is the integral part of logr |x|.

half_log computes natural logarithm.

half_log2 computes a base 2 logarithm.

half_log10 computes a base 10 logarithm.

native_log computes natural logarithm over an implementation-defined range. The maximum error is implementation-defined.

native_log2 computes a base 2 logarithm over an implementation-defined range. The maximum error is implementation-defined.

native_log10 computes a base 10 logarithm over an implementation-defined range. The maximum error is implementation-defined.