Math387::Power Function

Overload List

#SignatureDescription
1double Power(const double Base, const double Exponent);Power function.
2TCplx Power(const TCplx &A, const TCplx &X);Power function.
3TSCplx Power(const TSCplx &A, const TSCplx &X);
4TCplx Power(const double A, const TCplx &X);Power function.
5TSCplx Power(const float A, const TSCplx &X);
6TCplx Power(const TCplx &A, const double X);Power function.
7TSCplx Power(const TSCplx &A, const float X);

Overload 1: double Power(const double Base, const double Exponent);

Power function.

#NameTypeDescription
1Baseconst double
2Exponentconst double

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

Overload 2: TCplx Power(const TCplx &A, const TCplx &X);

Power function.

#NameTypeDescription
1Aconst TCplx &
2Xconst TCplx &

Returns: 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.

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

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

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

Overload 4: TCplx Power(const double A, const TCplx &X);

Power function.

#NameTypeDescription
1Aconst double
2Xconst TCplx &

Returns: Returns Base to any power.

Remarks:

Here base is real and exponent is complex.

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

Overload 5: TSCplx Power(const float A, const TSCplx &X);

#NameTypeDescription
1Aconst float
2Xconst TSCplx &
Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler

Overload 6: TCplx Power(const TCplx &A, const double X);

Power function.

#NameTypeDescription
1Aconst TCplx &
2Xconst double

Returns: Returns Base to any power.

Remarks:

Here base is complex and exponent is real.

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

Overload 7: TSCplx Power(const TSCplx &A, const float X);

#NameTypeDescription
1Aconst TSCplx &
2Xconst float
Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler