IMPOWER
function IMPOWER(arg1: any = null, arg2: any = null): number | string | boolean
Description
Returns a complex number raised to an integer power.
Parameters
- arg1
any
null Is a complex number you want to raise to a power.
- arg2
any
null Is the power to which you want to raise the complex number.
Returns
number | string | boolean
Try It
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.IMPOWER("-2+2.5i", -3));