std::logical_and

Defined in header <functional> template< class T > struct logical_and; (until C++14) template< class T = void > struct logical_and; (since C++14) Function object for performing logical AND (logical conjunction). Effectively calls operator&& on type T. Specializations The standard library provides a specialization of std::logical_and when T is not specified, which leaves the parameter types and return type to be deduced. logical_and<void>

std::logb

Defined in header <cmath> float logb( float arg ); (1) (since C++11) double logb( double arg ); (2) (since C++11) long double logb( long double arg ); (3) (since C++11) double logb( Integral arg ); (4) (since C++11) 1-3) Extracts the value of the unbiased radix-independent exponent from the floating-point argument arg, and returns it as a floating-point value. 4) A set of overloads or a function template accepting an argument of any integ

std::log2

Defined in header <cmath> float log2( float arg ); (1) (since C++11) double log2( double arg ); (2) (since C++11) long double log2( long double arg ); (3) (since C++11) double log2( Integral arg ); (4) (since C++11) 1-3) Computes the binary (base-2) logarithm of arg. 4) A set of overloads or a function template accepting an argument of any integral type. Equivalent to 2) (the argument is cast to double). Parameters arg - value of

std::log1p

Defined in header <cmath> float log1p( float arg ); (1) (since C++11) double log1p( double arg ); (2) (since C++11) long double log1p( long double arg ); (3) (since C++11) double log1p( Integral arg ); (4) (since C++11) 1-3) Computes the natural (base e) logarithm of 1+arg. This function is more precise than the expression std::log(1+arg) if arg is close to zero. 4) A set of overloads or a function template accepting an argument of any in

std::log10(std::valarray)

Defined in header <valarray> template< class T > valarray<T> log10( const valarray<T>& va ); For each element in va computes common (base 10) logarithm of the value of the element. Parameters va - value array to apply the operation to Return value Value array common logarithms of the values in va. Notes Unqualified function (log10) is used to perform the computation. If such function is not available, std::log10 is used due to argument

std::log10(std::complex)

Defined in header <complex> template< class T > complex<T> log10( const complex<T>& z ); Computes complex common (base 10) logarithm of a complex value z with a branch cut along the negative real axis. The behavior of this function is equivalent to std::log(z)/std::log(10). Parameters z - complex value Return value Complex common logarithm of z. Example #include <iostream> #include <cmath> #include <complex> int

std::log10

Defined in header <cmath> float log10( float arg ); (1) double log10( double arg ); (2) long double log10( long double arg ); (3) double log10( Integral arg ); (4) (since C++11) 1-3) Computes the common (base-10) logarithm of arg. 4) A set of overloads or a function template accepting an argument of any integral type. Equivalent to 2) (the argument is cast to double). Parameters arg - value of floating-point or Integral type

std::log(std::valarray)

Defined in header <valarray> template< class T > valarray<T> log( const valarray<T>& va ); For each element in va computes natural logarithm of the value of the element. Parameters va - value array to apply the operation to Return value Value array natural logarithms of the values in va. Notes Unqualified function (log) is used to perform the computation. If such function is not available, std::log is used due to argument dependent loo

std::log(std::complex)

Defined in header <complex> template< class T > complex<T> log( const complex<T>& z ); Computes complex natural (base e) logarithm of a complex value z with a branch cut along the negative real axis. Parameters z - complex value Return value If no errors occur, the complex natural logarithm of z is returned, in the range of a strip in the interval [−iπ, +iπ] along the imaginary axis and mathematically unbounded along the real axis. If z

std::log

Defined in header <cmath> float log( float arg ); (1) double log( double arg ); (2) long double log( long double arg ); (3) double log( Integral arg ); (4) (since C++11) 1-3) Computes the the natural (base e) logarithm of arg. 4) A set of overloads or a function template accepting an argument of any integral type. Equivalent to 2) (the argument is cast to double). Parameters arg - value of floating-point or Integral type Retu