public class MathExprJTerm extends Object
mathExp
conform Expressions
or definitions. This application is based on the jterm architecture.
Expression
or (variable- or
function-) definition. To know what kind of syntax an expression
String
must have, see the documentation of Parser
.
A definition String
must have the following Syntax:
name=expression
, e.g.:>a=5 >f(x)=3xVariables and functions which are defined previously, can be used, e.g.:
>a=5 >b=10 >f(x)=3x >f(a)*f(b)If parsing respectively evaluating was successful, it returns a new
InterpreterResult
with the String
of the created Variable
or Function
or the
result of the evaluated Expression
.Exception
occured during parsing or evaluating, the
returned InterpreterResult
contains the appropriate error
message and InterpreterResult.isErrorMessage
==true
.
To change the default evaluation Type
, you can type the following:
>defaultType=<type>For
type
you can choose real
(r
) for
RealType
or complex
(c
) for ComplexType
. The initial Type
is RealType
.Modifier and Type | Field and Description |
---|---|
de.jtem.jterm.Session |
session |
Constructor and Description |
---|
MathExprJTerm()
Creates a new
MathExprJTerm and the application's GUI. |
public MathExprJTerm()
MathExprJTerm
and the application's GUI.public static void main(String[] args)