Math387::IntPower Function

Overload List

#SignatureDescription
1double IntPower(const double Base, const int Exponent);Power function (integer power).
2TCplx IntPower(const TCplx &Base, const int N);Power function (integer power).
3TSCplx IntPower(const TSCplx &Base, const int N);

Overload 1: double IntPower(const double Base, const int Exponent);

Power function (integer power).

#NameTypeDescription
1Baseconst double
2Exponentconst int

Returns: Base to an integer power N.

Remarks:

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

Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler

Overload 2: TCplx IntPower(const TCplx &Base, const int N);

Power function (integer power).

#NameTypeDescription
1Baseconst TCplx &
2Nconst int

Returns: 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
Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler

Overload 3: TSCplx IntPower(const TSCplx &Base, const int N);

#NameTypeDescription
1Baseconst TSCplx &
2Nconst int
Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler