[Contents] [Previous Section] [Next Section] [Index]


log-Logarithm Functions

Interface

F_TYPE ln (F_TYPE x)

F_TYPE log2 (F_TYPE x)

F_TYPE log10 (F_TYPE x)

F_TYPE log1p (F_TYPE y)

Description

ln() computes the natural (base e) logarithm of x.

log2() computes the base 2 logarithm of x.

log10() computes the common (base 10) logarithm of x.

log1p() computes ln(1+y) accurately, even for tiny y.

Exceptions


Exceptional Argument       Routine Behavior

x < 0                      Invalid argument

x = 0                      Overflow

1+y < 0                    Invalid argument

1+y = 0                    Overflow



[Contents] [Previous Section] [Next Section] [Index]