**Caligula 1.0.0**

Caligula is a Java Bean component which allows you to define expressions, variables and functions and to compile and execute thesefunctions and expressions at runtime. With Caligula you can add...

Version:

1.0.0

Price:

$49 (USD)

Platform:

Windows All Versions

Caligula is a Java Bean component which allows you to define expressions, variables and functions and to compile and execute thesefunctions and expressions at runtime.

With Caligula you can add expression evaluation functionality to your application.For its normal operation Caligula does not rely on any user interface, and will therefore fit seamlessly into anyclient application.

Key features

More than 50 built-in mathematical functions ; Any number of user-defined variables and user-defined functions ; Decimal, hexadecimal and binary number formats ; Advanced functions like integration, root finding and extremum finding ; A programming interface lets you add your own functions ; Based on the Swing library

Use cases

Custom calculators ; Smart input controls

How Caligula works

Caligula processes numeric expressions. A numeric expression is astring like

"1+2" ; "sqrt(4)" ; "a*a+b" ; "acceleration = 9.81" ; "acceleration*time*time" ; "Distance (acceleration, 1.9)"

Caligula compiles an expression and executes (evaluates) it, producing anumeric result (a number) which can be displayed or used for furthercomputations in the client application. As opposed to expressions which are hardcoded into an application, Caligula can evaluate expressions which are onlyknown at runtime, e.g. like in a calculator.

Caligula can work with variables.Expressions 3 thru 6 in the list above are examples of expressions which makeuse of variables. You can define any number of variables in Caligula.

Caligulahas a rich set of internal functions. Internal functions are thosefunctions which are already built into Caligula like sin(), sqrt(), beta() etc.Expression 2 in the list above is an example of an expressions with an internalfunction.

Caligula also lets you define functions. Expression 6 inthe list above is an example of an expressions which make use of a function. Youcan define any number of functions in Caligula.

With Caligula you can addyour own function implementations and define them as external functions.When Caligula evaluates an expression and finds a call to an external functionit will call into the client application using the standard event mechanism,passing the function name and function arguments in the event parameter. Thisallows for a very flexible extension of Caligula's set of functions.

Caligulaperforms compilation and evaluation in two distinct steps. Thistremendously improves performance when expressions need to be evaluatedrepeatedly.

**Caligula Related Software:**