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

Function Documentation#

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

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

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

See also

log

Template Parameters
  • T – Scalar type

  • B – Base type

Parameters
  • otherComplex number

  • base – Base of the logarithm

Returns

Logarithm of the complex number with the given base