CArcCosRealfunction
Returns the complex arccosine of a real number.
Syntax
FUNCTION CArcCosReal (BYVAL value AS DOUBLE) AS _complex
Also documented as
CACosReal — one description covers them all.Parameters
| Name | Description | |
|---|---|---|
value | A 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
print CStr(CArcCosReal(1)) ' = 0 0 * i print CStr(CArcCosReal(-1)) ' = 3.141592653589793 0 * i print CStr(CArcCosReal(2)) ' = 0 +1.316957896924817 * i
Reference
- Include file
AfxComplex.inc - Defined in AfxNova/AfxComplex.inc:1026
- Documented in Numeric Datatypes/Complex Numbers Procedures.md
- Topic: Complex Numbers Procedures