Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/numeric/math/log10"

From cppreference.com
< cpp‎ | numeric‎ | math
m (Shorten template names. Use {{lc}} where appropriate.)
m (Update links.)
Line 35: Line 35:
  
 
{{dsc begin}}
 
{{dsc begin}}
{{dsc inc | cpp/numeric/math/dcl list log}}
+
{{dsc inc | cpp/numeric/math/dsc log}}
{{dsc inc | cpp/numeric/math/dcl list pow}}
+
{{dsc inc | cpp/numeric/math/dsc pow}}
{{dsc inc | cpp/numeric/complex/dcl list log10}}
+
{{dsc inc | cpp/numeric/complex/dsc log10}}
{{dsc inc | cpp/numeric/valarray/dcl list log10}}
+
{{dsc inc | cpp/numeric/valarray/dsc log10}}
 
{{dsc end}}
 
{{dsc end}}
  

Revision as of 22:18, 31 May 2013

 
 
 
 
Defined in header <cmath>
float       log10( float arg );
double      log10( double arg );
long double log10( long double arg );
double      log10( Integral arg );
(since C++11)

Computes the common (base 10) logarithm of arg.

Parameters

arg - floating point value

Return value

base 10 logarithm of arg.

Domain error occurs if arg is negative. NAN is returned in that case.

Range error occurs if arg is 0. -HUGE_VAL is returned in that case.

See also

(C++11)(C++11)
computes natural (base e) logarithm (ln(x))
(function) [edit]
(C++11)(C++11)
raises a number to the given power (xy)
(function) [edit]
complex common logarithm with the branch cuts along the negative real axis
(function template) [edit]
applies the function std::log10 to each element of valarray
(function template) [edit]