org.jscience.mathematics.analysis.expressions
Class DataExpression

java.lang.Object
  extended by org.jscience.mathematics.analysis.expressions.DataExpression
All Implemented Interfaces:
java.io.Serializable, Expression, JavaExpressible, XMLExpressible
Direct Known Subclasses:
Constant, NamedDataExpression

public abstract class DataExpression
extends java.lang.Object
implements Expression

Abstract class used as superclass for classes representing data. Here, data could refer to constants, variables or parameters.

See Also:
Constant, NamedDataExpression, Expression, Serialized Form

Field Summary
protected  double value
          The numerical value representing the DataExpression object.
 
Constructor Summary
DataExpression(double value)
          Creates a DataExpression object and initializes the value that it represents.
 
Method Summary
 boolean contains(Expression e)
          DOCUMENT ME!
 double eval()
          DOCUMENT ME!
 Expression factor(Expression e)
          DOCUMENT ME!
 java.util.List getElements()
          DOCUMENT ME!
 boolean isDifferentiable()
          DOCUMENT ME!
 boolean isExpandable()
          DOCUMENT ME!
 Expression isolate(Expression e)
          DOCUMENT ME!
 Expression isolate(Expression f, Expression e)
          DOCUMENT ME!
 void setValue(double x)
          Sets the value of the DataExpression object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jscience.mathematics.analysis.expressions.Expression
diff, optimize, replace, toJava, toTaylorMap, toXML
 

Field Detail

value

protected double value
The numerical value representing the DataExpression object.

Since:
1.0
Constructor Detail

DataExpression

public DataExpression(double value)
Creates a DataExpression object and initializes the value that it represents.

Parameters:
value - The value the DataExpression object should hold.
Since:
1.0
Method Detail

setValue

public void setValue(double x)
Sets the value of the DataExpression object.

Parameters:
x - The value the DataExpression object should have.
Since:
1.0
See Also:
eval()

eval

public double eval()
DOCUMENT ME!

Specified by:
eval in interface Expression
Returns:
DOCUMENT ME!

isDifferentiable

public boolean isDifferentiable()
DOCUMENT ME!

Specified by:
isDifferentiable in interface Expression
Returns:
DOCUMENT ME!
See Also:
Expression.diff(NamedDataExpression)

isExpandable

public boolean isExpandable()
DOCUMENT ME!

Specified by:
isExpandable in interface Expression
Returns:
DOCUMENT ME!

getElements

public java.util.List getElements()
DOCUMENT ME!

Specified by:
getElements in interface Expression
Returns:
DOCUMENT ME!

contains

public boolean contains(Expression e)
DOCUMENT ME!

Specified by:
contains in interface Expression
Parameters:
e - DOCUMENT ME!
Returns:
DOCUMENT ME!

isolate

public Expression isolate(Expression e)
DOCUMENT ME!

Specified by:
isolate in interface Expression
Parameters:
e - DOCUMENT ME!
Returns:
DOCUMENT ME!

isolate

public Expression isolate(Expression f,
                          Expression e)
DOCUMENT ME!

Specified by:
isolate in interface Expression
Parameters:
f - DOCUMENT ME!
e - DOCUMENT ME!
Returns:
DOCUMENT ME!

factor

public Expression factor(Expression e)
DOCUMENT ME!

Specified by:
factor in interface Expression
Parameters:
e - DOCUMENT ME!
Returns:
DOCUMENT ME!