JCL Help:TJclComplex.Assign@Float@Float@TComplexKind

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Assign the value of (X;Y) to the complex number object using ComplexType representation.


Pascal

 protected function Assign(const Coord: TCoords; const ComplexType: TComplexKind = crRectangular): TJclComplex; overload;
public function Assign(const X: Float; const Y: Float; const ComplexType: TComplexKind = crRectangular): TJclComplex; overload;


Parameters

Parameters Description
const ComplexType: TComplexKind = crRectangular Optional. Represents the type of the floating-point parameters above.
const X: Float The real part in the rectangular representation or radius in polar coordinates.
const Y: Float The imaginary part in the rectangular representation or angle (in grads) in polar coordinates.


Return Value

Method Assign returns the complex number object itself.


Description

Use Assign method to set the value of your complex number object to (X;Y). ComplexType parameter is used to determine whether floating-point parameters represents (X;Y) or (r;theta) pair of values.


See Also

TComplexKind AssignZero AssignOne


About

Donator

Alexei Koudinov


Notes

To assign a complex number the value of zero use AssignZero method instead. To assign a complex number the value of 1 ("complex unit") use AssignOne method instead.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page