Name

log, log2, log1p, logb — logarithm functions

Synopsis

log( in x double precision);
 
log2( in x double precision);
 
log1p( in x double precision);
 
logb( in x double precision);
 

Description

These functions work with double precision floating point numbers. They convert their argument to an IEEE 64-bit float and return a result of that type. See also log10.

:  log	natural logarithm (base e) of x.
:  log2	base-2 logarithm of x.
:  log1p	natural logarithm of (1 + x), computed accurately for very small x.
:  logb	extracts the exponent of x as a signed integer value in floating-point format.
    

Parameters

x

double precision

Return Values

log.

Examples

Example 24.224. Simple Examples

SQL> select concat ('the LOG of 0.513513 is: ', cast (log (0.513513) as varchar));
callret
VARCHAR
_______________________________________________________________________________

the LOG of 0.513513 is: -0.666480

1 Rows. -- 4 msec.
      

See Also

exp, log10, power, sqrt


© 1992 - OpenLink Software. All rights reserved.

Making Technology Work for You®