org.jscience.mathematics.analysis.expressions
Class Variable

java.lang.Object
  extended by org.jscience.mathematics.analysis.expressions.DataExpression
      extended by org.jscience.mathematics.analysis.expressions.NamedDataExpression
          extended by org.jscience.mathematics.analysis.expressions.Variable
All Implemented Interfaces:
java.io.Serializable, Expression, NumericalDifferentiable, JavaExpressible, Named, XMLExpressible

public class Variable
extends NamedDataExpression

Class representing a Variable object.

See Also:
Expression, NamedDataExpression, Parameter, Constant, Serialized Form

Field Summary
 
Fields inherited from class org.jscience.mathematics.analysis.expressions.NamedDataExpression
name
 
Fields inherited from class org.jscience.mathematics.analysis.expressions.DataExpression
value
 
Constructor Summary
Variable(java.lang.String name)
          Creates a Variable object.
Variable(java.lang.String name, double x)
          Creates a Variable object.
 
Method Summary
 java.lang.Object clone()
          DOCUMENT ME!
 boolean equals(java.lang.Object e)
          DOCUMENT ME!
 Expression optimize()
          DOCUMENT ME!
 Expression replace(Expression a, Expression b)
          DOCUMENT ME!
 java.lang.String toTaylorMap()
          DOCUMENT ME!
 java.lang.String toXML()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.mathematics.analysis.expressions.NamedDataExpression
diff, getName, numDiff, numEval, resetNumDiff, resetNumEval, setIndex, setName, setNumberOfIndependents, setValue, toJava, toString
 
Methods inherited from class org.jscience.mathematics.analysis.expressions.DataExpression
contains, eval, factor, getElements, isDifferentiable, isExpandable, isolate, isolate
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Variable

public Variable(java.lang.String name,
                double x)
Creates a Variable object.

Parameters:
name - The name the Variable object should be characterized by.
x - The value the Variable object should have if evaluated.
Since:
1.0

Variable

public Variable(java.lang.String name)
Creates a Variable object.

Parameters:
name - The name the Variable object should be characterized by.
Since:
1.0
Method Detail

optimize

public Expression optimize()
DOCUMENT ME!

Returns:
DOCUMENT ME!

replace

public Expression replace(Expression a,
                          Expression b)
DOCUMENT ME!

Parameters:
a - DOCUMENT ME!
b - DOCUMENT ME!
Returns:
DOCUMENT ME!

equals

public boolean equals(java.lang.Object e)
DOCUMENT ME!

Overrides:
equals in class java.lang.Object
Parameters:
e - DOCUMENT ME!
Returns:
DOCUMENT ME!

clone

public java.lang.Object clone()
DOCUMENT ME!

Overrides:
clone in class java.lang.Object
Returns:
DOCUMENT ME!

toTaylorMap

public java.lang.String toTaylorMap()
DOCUMENT ME!

Returns:
DOCUMENT ME!

toXML

public java.lang.String toXML()
DOCUMENT ME!

Returns:
DOCUMENT ME!