Operators

All common arithmetic operators are supported. Boolean operators are also fully supported. Boolean expressions are evaluated to be either 1 or 0 (true or false respectively).

An Check indicates that the operator can be used with the specific type of variable. Refer to the grammar for detailed information about operator precedence.

    Double Complex String Vector
Power ^ Check Check    
Boolean Not ! Check      
Unary Plus, Unary Minus +x, -x Check Check    
Modulus % Check      
Division / Check Check   Check
Multiplication * Check Check   Check
Addition, Subtraction +, - Check Check Check (only +)  
Less or Equal, More or Equal <=, >= Check      
Less Than, Greater Than <, > Check      
Not Equal, Equal !=, == Check Check Check  
Boolean And && Check      
Boolean Or || Check      




Functions

Note that you can always add new functions as described in the documentation. Each of the following functions can be applied to objects of the types indicated.

Functions added with addStandardFunctions():
    Double Complex String Vector
Sine sin(x) Check Check    
Cosine cos(x) Check Check    
Tangent tan(x) Check Check    
Arc Sine asin(x) Check Check    
Arc Cosine acos(x) Check Check    
Arc Tangent atan(x) Check Check    
Arc Tangent (with 2 parameters) atan2(y, x) Check      
Hyperbolic Sine sinh(x) Check Check    
Hyperbolic Cosine cosh(x) Check Check    
Hyperbolic Tangent tanh(x) Check Check    
Inverse Hyperbolic Sine asinh(x) Check Check    
Inverse Hyperbolic Cosine acosh(x) Check Check    
Inverse Hyperbolic Tangent atanh(x) Check Check    
Natural Logarithm ln(x) Check Check    
Logarithm base 10 log(x) Check Check    
Exponential exp(x) Check Check    
Absolute Value / Magnitude abs(x) Check Check    
Random number (between 0 and 1) rand()        
Modulus mod(x,y) = x % y Check      
Square Root sqrt(x) Check Check    
Sum sum(x,y,z) Check Check Check  
If if(cond,trueval,falseval) Check      
Str str(x) Check Check Check Check
Binomial coeficients binom(n,i) Integer values

Functions added with addComplex():
    Double Complex String Vector
Real Component re(c) Check Check    
Imaginary Component im(c) Check Check    
Complex Modulus (Absolute Value) cmod(c) Check Check    
Argument (Angle of complex value, in radians) arg(c) Check Check    
Complex conjugate conj(c) Check Check    
Complex, constructs a complex number from real and imaginar parts complex(x,y) Check      
Polar, constructs a complex number from modulus and argument polar(r,theta) Check