Download

Section categories

ActiveX [655]
Components and Libraries [747]
C and C++ Tools and Components [189]
C and C Tools and Components [141]
Databases and Networks [645]
Delphi Tools and Components [455]
Editors [111]
Help File Tools [120]
IDEs and Coding Utilities [167]
Java [194]
JavaScript [62]
Misc Programming Tools [545]
PowerBuilder Tools and Components [27]
Registration Tools [49]
Setup Utilities [160]
Visual Basic Components A-G [134]
Visual Basic Components H-P [72]
Visual Basic Components Q-Z [63]
Visual Basic Tools [163]

Our poll

How often do you buy software?
Total of answers: 4

Statistics


Total online: 6
Guests: 6
Users: 0

Login form

File Catalog

Main » Files » Programming » Java

JbcParser - Math Expression Parser Component for Java 2.9
29.01.2011, 01:15
MathParser evaluates mathematical expressions given as strings at runtime.

Highlights:

*Easy to use, simple class API.
*Comes with predefined functions.
*Users can create custom functions/variables.
*Optimization: Constant expression elimination for repeated tasks.
*Analytical Operators: +, -, /, *, ^(power)
*Logical Operators: =(equals),(and),|(or),!(not), <>(not equals), <=(less than or equals), >=(greater than or equals)
*Paranthesis: (, {, [
*Functions in the form of: f(x, y, z, ...)
*Function parameters are not calculated until needed.
*List of predefined functions is available in the documentation.
*Java source code is included.

An example of a simple expression is : LN(X)+SIN(10/2-5)

When parsed, this expression will be represented as: since the SIN(10/2-5) is in fact SIN(0) which is a constant and is 0.

Thus, in a loop, if you change the value of X and ask for the value of the expression, it will be evaluated quite fast since SIN(10/2-5) is not dependent on X.

X and Y are predefined variables. You can create your own variables as needed.

There are many predefined mathematical functions. They are listed in documentation. You can create your functions as needed. IF logic is implemented through a predefined IF(A,B,C) function. Similar logical functions can be created as needed.


Category: Java | Added by: File-Post
Views: 119 | Downloads: 0 | Rating: 0.0/0
Total comments: 0
Only registered users can add comments.
[ Registration | Login ]

Search

Site friends

add site