Math387.IntPower / IntPowerf Method

Overload List

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

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

Power function (integer power).

#NameTypeDescription
1BaseTCplxscalar
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, Math387.Power, Math387.Power, Math387.Power, Math387.Power, Math387.Power, Math387.Power

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

#NameTypeDescription
1BaseTSCplxscalar
2NInteger

Returns: TSCplx

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

Power function (integer power).

#NameTypeDescription
1Basedoublescalar
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; overload;

#NameTypeDescription
1Basesinglescalar
2ExponentInteger

Returns: single