Help Center

CSetfunction

Uses the cartesian components (x,y) to set the real and imaginary parts of a complex number.

Numeric DatatypesfunctionAfxComplex.incdocumented

Syntax

FUNCTION CSet (BYVAL x AS DOUBLE, BYVAL y AS DOUBLE) AS _complex
Also documented as CRect — one description covers them all.

Parameters

NameDescription
x, yDouble values.

Description

Uses the cartesian components (x,y) to set the real and imaginary parts of the complex number.

Example

DIM z AS _complex = CSet(3, 4)

Reference

  • Include file AfxComplex.inc
  • Defined in AfxNova/AfxComplex.inc:169
  • Documented in Numeric Datatypes/Complex Numbers Procedures.md
  • Topic: Complex Numbers Procedures