Using the Mathematics Development Engine Extension

The Mathematics Development Engine Extension provides three blocks for use in the behavior and events editor.

Basic Evaluation Block
Input: Text   Output: Float

The basic evaluation block takes as input an infix mathematical expression (e.g. "9+6"), and returns the result as a number type.

The block is completely numerical. Several functions, such as the trigonometric functions, are supported. A complete list of supported functions is provided in this chapter.



Symbolic Evaluation Block
Input: Text, Text   Output: Float

The symbolic evaluation block takes two inputs, and returns the result as a number type.

Input 1: An infix mathematical expression (e.g. "6*x+4")

Input 2: A substitution. Input should be of the form [variable]=[value]. Multiple substitutions can be separated with commas.

The block is completely numerical. For proper evaluation, a value must be substituted for every variable.



Symbolic Comparison Block
Input: Text, Text, Text   Output: Boolean

The symbolic evaluation block takes three inputs, and returns the result as a boolean type.

Input 1: An infix mathematical expression (e.g. "6*x+4")

Input 2: A second infix mathematical expression

Input 3: A substitution. Input should be of the form [variable]=[value]. Multiple substitutions can be separated with commas.

The block makes the specified substitutions, and returns TRUE if Input 1 equals Input 2. Otherwise, FALSE is returned.



Functions Supported

abs absolute value of x
sqrt square root of x
exp exponentiate: ex
ln natural log of x
log log of x (base 10)
floor floor of x
ceil ceiling of x
round round x to nearest integer
sin sin of x
cos cos of x
tan tan of x
sec sec of x
csc csc of x
cot cot of x
acos arccos of x
asin arcsin of x
atan arctan of x