Help Center

CComplex.CACosRealmethod

Returns the complex arccosine of a real number.

Numeric DatatypesmethodCComplex.incdocumented

Syntax

FUNCTION CACosReal (BYVAL value AS DOUBLE) AS CComplex
Also documented as CArcCosReal — one description covers them all.

Parameters

NameDescription
valueA double value representing the real part of a complex number.

Description

Returns the complex arccosine of a real number.
For a between -1 and 1, the function returns a real value in the range \[0, pi].
For a less than -1 the result has a real part of pi and a negative imaginary part.
For a greater than 1 the result is purely imaginary and positive.

Example

DIM cpx AS CComplex print cpx.CArcCosReal(1) ' = 0 0 * i print cpx.CArcCosReal(-1) ' = 3.141592653589793 0 * i print cpx.CArcCosReal(2) ' = 0 +1.316957896924817 * i

Reference

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