|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.maths.symbolic.Expression
public abstract class Expression
The basic abstract class for doing analytical calculations.
Constructor Summary | |
---|---|
Expression()
|
Method Summary | |
---|---|
AbelianGroup.Member |
add(AbelianGroup.Member g)
The group composition law. |
static Expression |
difference(AbelianGroup.Member a,
AbelianGroup.Member b)
Method for generating an Expression by a formal operation on a set member |
Expression |
differentiate(java.util.Hashtable ht)
Differentiation of the expression with respect to the variables |
abstract Expression |
differentiate(Variable x)
Differentiation of the expression with respect to a variable |
Field.Member |
divide(Field.Member f)
The multiplication law with inverse. |
static Expression |
divide(Field.Member f,
Field.Member g)
Method for generating an Expression by a formal operation on a set member |
abstract Expression |
evaluate()
This method substitutes the variable with the variable values, if non-null; they can be Contant s or
other Expression s. |
protected abstract int |
getPriority()
Get the priority of the operator described by the expression. |
Field.Member |
inverse()
Returns the inverse member. |
static Expression |
inverse(Field.Member f)
Method for generating an Expression by a formal operation on a set member |
static void |
main(java.lang.String[] args)
Put some expressions like "sin(2*x)/x+3/z" in the command line. |
Ring.Member |
multiply(Ring.Member r)
The multiplication law. |
AbelianGroup.Member |
negate()
Returns the negative member. |
static Expression |
negative(AbelianGroup.Member r)
Method for generating an Expression by a formal operation on a set member |
static Expression |
power(Field.Member f,
int g)
Method for generating an Expression by a formal operation on a set member |
static Expression |
product(Ring.Member[] args)
Method for generating an Expression by a formal operation on a set member |
static Expression |
product(Ring.Member a,
Ring.Member b)
Method for generating an Expression by a formal operation on a set member |
Ring.Member |
rise(int f)
Power of an expression. |
AbelianGroup.Member |
subtract(AbelianGroup.Member g)
The group composition law with inverse. |
static Expression |
sum(AbelianGroup.Member[] args)
Method for generating an Expression by a formal operation on a set member |
static Expression |
sum(AbelianGroup.Member a,
AbelianGroup.Member b)
Method for generating an Expression by a formal operation on a set member |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface JSci.maths.Member |
---|
getSet |
Constructor Detail |
---|
public Expression()
Method Detail |
---|
public Expression differentiate(java.util.Hashtable ht)
ht
- table with variable / derivative orderpublic abstract Expression differentiate(Variable x)
x
- the variablepublic abstract Expression evaluate()
Contant
s or
other Expression
s. Simplification is performed.
protected abstract int getPriority()
public Field.Member inverse()
Field.Member
inverse
in interface Field.Member
public Field.Member divide(Field.Member f)
divide
in interface Field.Member
f
- a field memberpublic Ring.Member multiply(Ring.Member r)
multiply
in interface Ring.Member
r
- a ring memberpublic AbelianGroup.Member add(AbelianGroup.Member g)
add
in interface AbelianGroup.Member
g
- a group memberpublic AbelianGroup.Member negate()
negate
in interface AbelianGroup.Member
public AbelianGroup.Member subtract(AbelianGroup.Member g)
subtract
in interface AbelianGroup.Member
g
- a group memberpublic Ring.Member rise(int f)
f
- the exponent.public static Expression negative(AbelianGroup.Member r)
public static Expression sum(AbelianGroup.Member a, AbelianGroup.Member b)
public static Expression sum(AbelianGroup.Member[] args)
public static Expression difference(AbelianGroup.Member a, AbelianGroup.Member b)
public static Expression product(Ring.Member a, Ring.Member b)
public static Expression product(Ring.Member[] args)
public static Expression inverse(Field.Member f)
public static Expression divide(Field.Member f, Field.Member g)
public static Expression power(Field.Member f, int g)
public static void main(java.lang.String[] args) throws ParseException
ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |