C++ Complex 库 - Log
描述
它是复数的自然对数并返回复数 x 的自然(以 e 为底)对数,使用主分支,其切割沿负实轴。
he 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.
声明
以下是 std::log 的声明。
template<class T> complex<T> log (const complex<T>& x);
C++11
template<class T> complex<T> log (const complex<T>& x);
参数
x − 这是一个复数的值。
返回值
它使用主分支返回复数 x 的自然(以 e 为底)对数,主分支沿负实轴进行切割。
异常
none