Help Center

CComplex.CAbs2method

Returns the squared magnitude of this complex number, otherwise known as the complex norm.

Numeric DatatypesmethodCComplex.incdocumented

Syntax

FUNCTION CAbs2 () AS DOUBLE
Also documented as CNorm — one description covers them all.

Description

Returns the squared magnitude of this complex number, otherwise known as the complex norm.

Example

DIM cpx AS CComplex = CComplex(2, 3) PRINT cpx.CAbs2 Output: 13

Reference

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