JEP - Java Expression Parser SourceForge Logo

Main  |  Samples  |  Documentation  |  Version Log  |  Forum  |  Download
Usage | Operators & Functions | Grammar | Custom Functions | JavaDoc | FAQ

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() Check Check    
Cosine cos() Check Check    
Tangent tan() Check Check    
Arc Sine asin() Check Check    
Arc Cosine acos() Check Check    
Arc Tangent atan() Check Check    
Hyperbolic Sine sinh() Check Check    
Hyperbolic Cosine cosh() Check Check    
Hyperbolic Tangent tanh() Check Check    
Inverse Hyperbolic Sine asinh() Check Check    
Inverse Hyperbolic Cosine acosh() Check Check    
Inverse Hyperbolic Tangent atanh() Check Check    
Natural Logarithm ln() Check Check    
Logarithm base 10 log() Check Check    
Angle angle() Check      
Absolute Value / Magnitude abs() Check Check    
Random number (between 0 and 1) rand()        
Modulus mod() Check      
Square Root sqrt() Check Check    
Sum sum() Check      

Functions added with addComplex():
    Double Complex String Vector
Real Component re()   Check    
Imaginary Component im()   Check    



:: © 2000 Nathan Funk