|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jscience.mathematics.analysis.expressions.OperatorExpression
org.jscience.mathematics.analysis.expressions.BinaryOperator
public abstract class BinaryOperator
Abstract class used as superclass for binary operators.
UnaryOperator
,
OperatorExpression
,
Serialized FormField Summary | |
---|---|
protected double[] |
deriv
DOCUMENT ME! |
protected boolean |
evalValid
DOCUMENT ME! |
protected double |
evalValue
DOCUMENT ME! |
protected Expression |
secondOperand
The second Expression this BinaryOperator works on. |
protected boolean[] |
valid
DOCUMENT ME! |
Fields inherited from class org.jscience.mathematics.analysis.expressions.OperatorExpression |
---|
firstOperand |
Constructor Summary | |
---|---|
BinaryOperator(Expression e1,
Expression e2)
Creates a BinaryOperator object working on two given Expression objects. |
Method Summary | |
---|---|
Expression |
diff(NamedDataExpression x)
Class BinaryOperator provides a default diff method for use by nondifferentiable objects. |
java.util.List |
getElements()
The getElements method must return a java.util.List whose elements are all the subexpressions of the Expression. |
Expression |
getSecondOperand()
Returns the second operand that the BinaryOperator object works on. |
boolean |
isDifferentiable()
Default implementation of method isDifferentiable which assumes that the BinaryOperator object is differentiable. |
boolean |
isExpandable()
Default implementation of method isExpandable which assumes that the BinaryOperator object is expandable. |
void |
resetNumDiff(int i)
DOCUMENT ME! |
void |
resetNumEval()
DOCUMENT ME! |
void |
setIndex(int i)
DOCUMENT ME! |
void |
setNumberOfIndependents(int n)
DOCUMENT ME! |
void |
setSecondOperand(Expression e2)
Assigns the second operand that the BinaryOperator object works on to a given Expression object. |
java.lang.String |
toTaylorMap()
Dummy implementation for classes that are not expandable. |
Methods inherited from class org.jscience.mathematics.analysis.expressions.OperatorExpression |
---|
contains, factor, getFirstOperand, isolate, isolate, setFirstOperand |
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 |
---|
eval, optimize, replace, toJava, toXML |
Field Detail |
---|
protected Expression secondOperand
OperatorExpression.firstOperand
protected boolean evalValid
protected double evalValue
protected boolean[] valid
protected double[] deriv
Constructor Detail |
---|
public BinaryOperator(Expression e1, Expression e2)
e1
- An Expression object.e2
- Another Expression object.Method Detail |
---|
public void setSecondOperand(Expression e2)
e2
- An Expression object.OperatorExpression.setFirstOperand(org.jscience.mathematics.analysis.expressions.Expression)
public Expression getSecondOperand()
OperatorExpression.getFirstOperand()
,
setSecondOperand(org.jscience.mathematics.analysis.expressions.Expression)
public boolean isDifferentiable()
Expression.isDifferentiable()
public boolean isExpandable()
Expression.isExpandable()
public Expression diff(NamedDataExpression x)
x
- DOCUMENT ME!
public java.lang.String toTaylorMap()
public java.util.List getElements()
Expression
public void resetNumEval()
public void resetNumDiff(int i)
i
- DOCUMENT ME!public void setNumberOfIndependents(int n)
n
- DOCUMENT ME!public void setIndex(int i)
i
- DOCUMENT ME!
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |