Math387.Power / Powerf Method

Overload List

#SignatureDescription
1function Power(const A, X: TCplx): TCplx; overload;Power function.
2function Power(const A: TCplx; const X: double): TCplx; overload;Power function.
3function Power(const A, X: TSCplx): TSCplx; overload;
4function Power(const A: TSCplx; const X: single): TSCplx; overload;
5function Power(const A: double; const X : TCplx): TCplx; overload;Power function.
6function Power(const Base, Exponent: double): double; overload;Power function.
7function Power(const A: single; const X : TSCplx): TSCplx; overload;
8function Powerf(const Base, Exponent: single): single; overload;

Overload 1: function Power(const A, X: TCplx): TCplx; overload;

Power function.

#NameTypeDescription
1ATCplxscalar
2XTCplxscalar

Returns: TCplx (complex) - Returns Base to any power.

Remarks:

Here both base and exponent can be complex values. Use this version if you want to compute a power to the negative exponent in general case.

Overload 2: function Power(const A: TCplx; const X: double): TCplx; overload;

Power function.

#NameTypeDescription
1ATCplxscalar
2Xdoublescalar

Returns: TCplx (complex) - Returns Base to any power.

Remarks:

Here base is complex and exponent is real.

Overload 3: function Power(const A, X: TSCplx): TSCplx; overload;

#NameTypeDescription
1ATSCplxscalar
2XTSCplxscalar

Returns: TSCplx

Overload 4: function Power(const A: TSCplx; const X: single): TSCplx; overload;

#NameTypeDescription
1ATSCplxscalar
2Xsinglescalar

Returns: TSCplx

Overload 5: function Power(const A: double; const X : TCplx): TCplx; overload;

Power function.

#NameTypeDescription
1Adoublescalar
2XTCplxscalar

Returns: TCplx (complex) - Returns Base to any power.

Remarks:

Here base is real and exponent is complex.

Overload 6: function Power(const Base, Exponent: double): double; overload;

Power function.

#NameTypeDescription
1Basedoublescalar
2Exponentdoublescalar

Returns: double - Returns Base to any power.

Remarks:

Math387.IntPower is faster, if Exponent is an integer. Real valued power can handle only positive Exponent and Base. Math387.IntPower can also handle negative exponent and/or negative base. To compute a power to the non-integer negative exponent and base in general case, use the complex version of the function.

See Also: Math387.IntPower, Math387.IntPower, Math387.IntPower

Overload 7: function Power(const A: single; const X : TSCplx): TSCplx; overload;

#NameTypeDescription
1Asinglescalar
2XTSCplxscalar

Returns: TSCplx

Overload 8: function Powerf(const Base, Exponent: single): single; overload;

#NameTypeDescription
1Basesinglescalar
2Exponentsinglescalar

Returns: single