Simulator Tag Operators and Functions 
Common arithmetic and Boolean operators can be used to create Simulator tag algorithms.
See also:
The following table lists supported operators in order of precedence from highest to lowest:
Operator Type |
Operator |
Use with Double Variable |
Use with Complex Variable |
Use with String Variable |
Use with Vector Variable |
Unary plus Unary minus |
+x -x |
Yes |
Yes |
No |
No |
Exponential power |
^ |
Yes |
Yes |
No |
No |
Division |
/ |
Yes |
Yes |
No |
Yes |
Multiplication |
* |
Yes |
Yes |
No |
Yes |
Addition Subtraction |
+ - |
Yes |
Yes |
Yes for addition |
No |
Not equal Equal |
!= = |
Yes |
Yes |
Yes |
No |
Less than or equal to Greater than or equal to |
<= >= |
Yes |
No |
No |
No |
Less than Greater than |
< > |
Yes |
No |
No |
No |
Boolean Not |
! |
Yes |
No |
No |
No |
Boolean Or Boolean And |
|| && |
Yes |
No |
No |
No |
The following table lists the functions that can be used to create Simulator tag algorithms:
Function Name |
Function |
Use with Double Variable |
Use with Complex Variable |
Use with String Variable |
Use with Array Variable |
Sine |
sin() |
Yes |
Yes |
No |
No |
Cosine |
cos() |
Yes |
Yes |
No |
No |
Tangent |
tan() |
Yes |
Yes |
No |
No |
Arc sine |
asin() |
Yes |
Yes |
No |
No |
Arc cosine |
acos() |
Yes |
Yes |
No |
No |
Arc tangent |
atan() |
Yes |
Yes |
No |
No |
Hyperbolic sine |
hsin() |
Yes |
Yes |
No |
No |
Hyperbolic cosine |
hcos() |
Yes |
Yes |
No |
No |
Hyperbolic tangent |
htan() |
Yes |
Yes |
No |
No |
Inverse hyperbolic sine |
asinh() |
Yes |
Yes |
No |
No |
Inverse hyperbolic cosine |
acosh() |
Yes |
Yes |
No |
No |
Inverse hyperbolic tangent |
atanh() |
Yes |
Yes |
No |
No |
Natural logarithm |
ln() |
Yes |
Yes |
No |
No |
Logarithm Base 10 |
log() |
Yes |
Yes |
No |
No |
Angle |
angle() |
Yes |
No |
No |
No |
Absolute Value/Magnitude |
abs() |
Yes |
Yes |
No |
No |
Random number (between 0 and 1) |
rand() |
No |
No |
No |
No |
Modulus |
mod() |
Yes |
No |
No |
No |
Sum |
sum() |
Yes |
No |
No |
No |
Real component |
re() |
No |
Yes |
No |
No |
Imaginary component |
im() |
No |
Yes |
No |
No |
Example
The following list shows examples of Simulator tag algorithms:
m^(-((s/40)^2)) * 80
s^3 / 1e4
h +h^2/1e3 - m^3/1e4
sin(s/20) * 50
(sin(m/10) > 0)*sin(m/10)*50