Template Function librapid::log(const Complex<T>&, const B&)#

Function Documentation#

template<typename T, typename B>
Complex<T> librapid::log(const Complex<T> &other, const B &base)#

Calculates the logarithm of a complex number with a real base.

\( \log_{\mathrm{base}}(z) = \log(z) / \log(\mathrm{base}) \)

See also

log

Template Parameters
  • T – Scalar type of the complex number

  • B – Scalar type of the base

Parameters
  • otherComplex number

  • base – Base of the logarithm (real)

Returns

Logarithm of the complex number with the given base