Overload List
Overload 1: function Power(const A, X: TCplx): TCplx; overload;
Power function.
Returns: TCplx (complex) - Returns Base to any power.
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; overload;
Power function.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | A | TCplx | scalar |
| 2 | X | double | scalar |
Returns: TCplx (complex) - Returns Base to any power.
Here base is complex and exponent is real.
Overload 3: function Power(const A, X: TSCplx): TSCplx; overload;
Overload 4: function Power(const A: TSCplx; const X: single): TSCplx; overload;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | A | TSCplx | scalar |
| 2 | X | single | scalar |
Returns: TSCplx
Overload 5: function Power(const A: double; const X : TCplx): TCplx; overload;
Power function.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | A | double | scalar |
| 2 | X | TCplx | scalar |
Returns: TCplx (complex) - Returns Base to any power.
Here base is real and exponent is complex.
Overload 6: function Power(const Base, Exponent: double): double; overload;
Power function.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Base | double | scalar |
| 2 | Exponent | double | scalar |
Returns: double - Returns Base to any power.
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.
Overload 7: function Power(const A: single; const X : TSCplx): TSCplx; overload;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | A | single | scalar |
| 2 | X | TSCplx | scalar |
Returns: TSCplx
Overload 8: function Powerf(const Base, Exponent: single): single; overload;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Base | single | scalar |
| 2 | Exponent | single | scalar |
Returns: single