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

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Raise the value of the current complex number object to the PwrValue power.


Pascal

 public function CPwr(const PwrValue: TJclComplex): TJclComplex; overload;
public function CPwr(const X: Float; const Y: Float; const ComplexType: TComplexKind = crRectangular): TJclComplex; overload;


Parameters

Parameters Description
const PwrValue: TJclComplex The complex number that is the exponent for the operation.
const X: Float The real part in the rectangular representation or radius in polar coordinates of the complex number that is the exponent for the operation.
const Y: Float The imaginary part in the rectangular representation or angle in polar coordinates of the complex number that is the exponent for the operation.
const ComplexType: TComplexKind = crRectangular Optional. Defines whether X and Y parameters are stated in rectangular representation or in polar coordinates.


Return Value

Method CPwr returns the calling object with the changed value.


Description

Use CPwr method to raise the value of the current complex number object to the PwrValue power and change the value of the object accordingly. The complex number that is the exponent for the operation is set either as an object of TJclComplex type or as a pair of its values (X;Y).


See Also

CNewPwr CLn CExp CIntPwr CRealPwr CRoot CSqrt TJclComplex


About

Donator

Earl F. Glynn


Notes

For creating a new resulting complex number object instead of changing the value of the current one use CNewPwr method.


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