Math387.IntPower / IntPowerf Method

Overload List

#SignatureDescription
1function IntPower(const Base: TCplx; const N: Integer): TCplx;Power function (integer power).
2function IntPower(const Base: TSCplx; const N: Integer): TSCplx;
3function IntPower(const Base: Double; const Exponent: Integer): Double;Power function (integer power).
4function IntPowerf(const Base: Single; const Exponent: Integer): Single;

Overload 1: function IntPower(const Base: TCplx; const N: Integer): TCplx;

Power function (integer power).

#NameTypeDescription
1BaseTCplx
2NInteger

Returns: TCplx (complex) - Returns complex Base to an integer power N.

Remarks:

Try to avoid calling this function for small powers. N can also be negative.

See Also: Math387.Power

Overload 2: function IntPower(const Base: TSCplx; const N: Integer): TSCplx;

#NameTypeDescription
1BaseTSCplx
2NInteger

Returns: TSCplx

Overload 3: function IntPower(const Base: Double; const Exponent: Integer): Double;

Power function (integer power).

#NameTypeDescription
1BaseDouble
2ExponentInteger

Returns: Double - Base to an integer power N.

Remarks:

Try to avoid calling this function for small powers. N can also be negative.

Overload 4: function IntPowerf(const Base: Single; const Exponent: Integer): Single;

#NameTypeDescription
1BaseSingle
2ExponentInteger

Returns: Single