A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/complex/log/ below:

function template

<complex>

std::log
template<class T> complex<T> log (const complex<T>& x);

Natural logarithm of complex

Returns the natural (base-e) logarithm of the complex number x, using the principal branch, whose cuts are along the negative real axis.

The value computed is bounded along the imaginary axis between [-i*PI,i*PI].


When x is a negative real number, log(x).imag() is PI.

This is the complex version of the log function (defined in <cmath>).



Parameters
x
Complex value.

Return value Natural logarithm of x.

See also
log10
Common logarithm of complex (function template)
exp
Exponential of complex (function template)
pow
Power of complex (function template)
log (cmath)
Compute natural logarithm (function)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4