The Expression Evaluator Object's Built-in Functions
General
Math Functions
Trigonometric
Functions
Inverse
Trigonometric Functions
Logarithmic
Functions
Typecast Functions
Other Functions
Format:
FunctionName(paramaters)
Number: what function does
with a numeric parameter
String: what function does with a string parameter
List: what function does with a List parameter
Note: If a particualr
combination is left out, the function does not support it and
will generate an error.
Note: All functions will return floats unless
stated otherwise.
Abs(param1)
Number: returns the absolute value of param1 (returns an
integer is patam1 is an integer)
List: performs Abs on all of the elements in the list and returns
the new list
Ceil(param1)
Number: returns the smallest interger that is greater than or
equal to param1 (returns an integer)
List: performs Ceil on all of the elements in the list and
returns the new list
Floor(param1)
Number: returns the largest interger that is less than or equal
to param1 (returns an integer)
List: performs Floor on all of the elements in the list and
returns the new list
Pow(param1,
param2)
Number,Number: returns the param1raised to the power param2
(if two integers are used, this function will return an integer)
Number,List: returns a list containing Pow(number,
list_element)
List,Number: returns a list containing Pow(list_element,
number)
Round(param1)
Number: returns param1 rounded to the nearest integer (returns
an integer)
List: performs Round on all of the elements in the list and
returns the new list
Sqrt(param1)
Number: returns the square root of param1
List: performs Sqrt on all of the elements in the list and
returns the new list
Cos(param1)
Number: returns the cosine of param1 (param1 is
in radians)
List: performs Cos on all of the elements in the list and returns
the new list
Cot(param1)
Number: returns the cotangent of param1 (param1
is in radians)
List: performs Cot on all of the elements in the list and returns
the new list
Csc(param1)
Number: returns the cosecant of param1 (param1
is in radians)
List: performs Csc on all of the elements in the list and returns
the new list
Sec(param1)
Number: returns the secant of param1 (param1 is
in radians)
List: performs Sec on all of the elements in the list and returns
the new list
Sin(param1)
Number: returns the sine of param1 (param1 is
in radians)
List: performs Sin on all of the elements in the list and returns
the new list
Tan(param1)
Number: returns the tangent of param1 (param1
is in radians)
List: performs Tan on all of the elements in the list and returns
the new list
Inverse Trignometric Functions:
ArcCos(param1)
Number: returns the inverse cosine of param1 (result is
in radians)
List: performs ArcCos on all of the elements in the list and
returns the new list
ArcCot(param1)
Number: returns the inverse cotangent of param1 (result
is in radians)
List: performs ArcCot on all of the elements in the list and
returns the new list
ArcCsc(param1)
Number: returns the inverse cosecant of param1 (result
is in radians)
List: performs ArcCsc on all of the elements in the list and
returns the new list
ArcSec(param1)
Number: returns the inverse secant of param1 (result is
in radians)
List: performs ArcSec on all of the elements in the list and
returns the new list
ArcSin(param1)
Number: returns the inverse sine of param1 (result is in
radians)
List: performs ArcSin on all of the elements in the list and
returns the new list
ArcTan(param1)
Number: returns the inverse tangent of param1 (result is
in radians)
List: performs ArcTan on all of the elements in the list and
returns the new list
Ln(param1)
Number: returns the natural logarithm (base 10) of param1
List: performs Ln on all of the elements in the list and returns
the new list
Log(param1)
Number: returns the common logarithm (base 10) of param1
List: performs Log on all of the elements in the list and returns
the new list
LogB(param1,
param2)
Number,Number: returns the logarithm of param1in base param2
Number,List: returns a list containing LogB(number,
list_element)
List,Number: returns a list containing LogB(list_element,
number)
Float(param1)
Number: returns param1 as a float
String: converts the string to a number and returns it as a float
List: performs Float on all of the elements in the list and
returns the new list
Int(param1)
Number: returns param1 as an integer, truncating off
anything after the decimal point
String: converts the string to a number and returns it as an
integer, truncating off anything after the decimal point
List: performs Int on all of the elements in the list and returns
the new list
List(param1)
Number: converts the number into a single element list and
returns the list
String: converts the string into a single element list and
returns the list
List: simply returns the list
String(param1)
Number: converts the number into a string and returns the string
String: simply returns the string
List: performs String on all of the elements in the list and
returns the new list
Element(param1,
param2)
Note: param2 represents the index value.
Index values start at 0 and range to length - 1. If param2
is negative, it is adjusted to length + param2; that is,
a negative index value counts from the end of the list or string.
Number,Number: converts param1 to a string and returns
the character at index param2
String,Number: returns the character in param1 at index param2
List,Number: returns the element of the list at index param2
Global(param1)
Expression: returns the result of evaluating param1 as
if it were in a global settings (that is, outside of any user-defined
functions or operations)
Length(param1)
Number: converts the number into a string and returns the number
of characters in the string
String: returns the number of characters in the string
List: returns the number of elements in the list
ListOp(param1,param2)
List,Operator: returns the result of applying operator
to all of the elements in list (element1 operator
element2 operator element3...)
SubStr(param1,
param2, param3)
Note: param2 represents the index value.
Index values start at 0 and range to length - 1. If param2
is negative, it is adjusted to length + param2; that is,
a negative index value counts from the end of the list or string.
Note: param3 represents the count value.
If param3 is negative, param2 will be adjusted
back by param3 and param3 will be made
positive; that is, a negative count value makes the substr start
at the index value and move backward through the string.
Number,Number,Number: converts param1 to a string and
returns the substring of length param3 starting at index
param2
String,Number,Number: returns the substring of length param3
starting at index param2