Script Function ReferenceFunction Reference >Script Function Reference >Varaible Manipulation>getComplexNumbergetComplexNumbergetComplexNumber will retrieve a number variable.
getComplexNumber(varName, ...)
ParametersgetComplexNumber will accept any number of string values. Each string needs to be the name of a varaible defined in the calculator.Return ValueFor each parameter passed getComplexNumber will return a number in the number table format. If the variable is not defined in the calculator or is a list or matrix a nil is returned.Examplefunction example() x = getComplexNumber("x") outputString("abs(x)="..(math.sqrt(x.r*x.r+x.i*x.i)).."\n") end |