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