Logarithm Functions in math.h

#include <math.h>
double log (double x)
long logl (long double x)
float logf (float x)
double log2 (double x)
long log2l (long double x)
float log2f (float x)
double log10 (double x)
long log10l (long double x)
float log10f (float x)
double log1p (double x)
long log1pl (long double x)
float log1pf (float x)

Some Description:

  • The log function computes the value of the natural logarithm of argument x.
  • The log2 function computes the value of the logarithm of argument x to base 2.
  • The log10 function computes the value of the logarithm of argument x to base 10.
  • The log1p function computes the value of \log(1+x) accurately even for very small values of x.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s