jtem home

downloads

credits

tools:
· jterm

libraries:
· numericalMethods
· mfc
· ellipticFunctions
· blas
· moebiusViewer
· riemann
· mathExpr
· jgimmick
· java2d

Java Tools
for
Experimental Mathematics

jterm

JTerm is a swing component that roughly has the look and feel of a Unix shell window: You can type text to some prompt and after hitting Return the text is evaluated. You are shown the result and you are presented with the next prompt. There is no mouse cursor but a caret at the text insertion point. The cursor keys can be used to move the caret (left and right) or to navigate in the command history (up and down).

In accordance with the way swing proposes to handle text, JTerm is implemented by defining a subclass Session of Document. A single JTerm window could handle multiple sessions (just call setDocument).

The main application is interaction with Java interpreters: to provide a shell window where you can interact with Java objects. The "interpreter" can however be anything that implements a very simple interface called StringEvaluator. This contains only one method evaluate that given a string returns a result string together with a boolean telling whether the result string is a regular result or in fact an error message (has influence on the color of the result string).

Tutorial

WML Valid HTML 4.0!