Math387.Power / Powerf Method

Overload List

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

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

Power function.

#NameTypeDescription
1ATCplx
2XTCplx

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;

Power function.

#NameTypeDescription
1ATCplx
2XDouble

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

Remarks:

Here base is complex and exponent is real.

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

#NameTypeDescription
1ATSCplx
2XTSCplx

Returns: TSCplx

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

#NameTypeDescription
1ATSCplx
2XSingle

Returns: TSCplx

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

Power function.

#NameTypeDescription
1ADouble
2XTCplx

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

Remarks:

Here base is real and exponent is complex.

Overload 6: function Power(const Base: Double; const Exponent: Double): Double;

Power function.

#NameTypeDescription
1BaseDouble
2ExponentDouble

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

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

#NameTypeDescription
1ASingle
2XTSCplx

Returns: TSCplx

Overload 8: function Powerf(const Base: Single; const Exponent: Single): Single;

#NameTypeDescription
1BaseSingle
2ExponentSingle

Returns: Single