Manpage of LOG

Google
Web www.fiveanddime.net

LOG

Section: NEWLIB (3)
Updated: 2005 Feb 23
Index Return to Main Contents
 

NAME

1.21 `log', `logf'--natural logarithms

 

SYNOPSIS


     #include <math.h>
     double log(double X);
     float logf(float X);  

DESCRIPTION

Return the natural logarithm of X, that is, its logarithm base e (where e is the base of the natural system of logarithms, 2.71828...). `log' and `logf' are identical save for the return and argument types.


   You can use the (non-ANSI) function `matherr' to specify error handling for these functions.

 

RETURNS

Normally, returns the calculated value. When X is zero, the returned value is `-HUGE_VAL' and `errno' is set to `ERANGE'. When X is negative, the returned value is `-HUGE_VAL' and `errno' is set to `EDOM'. You can control the error behavior via `matherr'.

 

PORTABILITY

`log' is ANSI, `logf' is an extension.

 

SEE ALSO

log is part of the libm library. The full documentation for libm is maintained as a Texinfo manual. If info and libm are properly installed at your site, the command
info libm

will give you access to the complete manual.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURNS
PORTABILITY
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 21:25:24 GMT, May 16, 2005



www.fiveanddime.net








Google
Web www.fiveanddime.net