Help Center

CComplex.CLogmethod

Returns the complex natural logarithm (base e) of this complex number.

Numeric DatatypesmethodCComplex.incdocumented

Syntax

FUNCTION CLog () AS CComplex
FUNcTION CLog (BYVAL baseValue AS DOUBLE) AS CComplex

Parameters

NameDescription
baseValueA double value.

Description

Returns the complex natural logarithm (base e) of this complex number. The branch cut is the negative real axis.

Examples

DIM cpx AS CComplex = CComplex(1, 1) PRINT cpx.CLog Output: 0.3465735902799727 +0.7853981633974483 * i

DIM cpx AS CComplex = CComplex(0, 0) PRINT cpx.CLog Output: -1.#INF

DIM cpx AS CComplex = CComplex(1, 1) PRINT cpx.CLog(10) Output: 0.1505149978319906 +0.3410940884604603 * i

Reference

  • Include file CComplex.inc
  • Defined in AfxNova/CComplex.inc:1118
  • Documented in Numeric Datatypes/CComplex Class.md
  • Topic: CComplex Class