Class Differentiable
java.lang.Object
math.differentialcalculus.Differentiable
Anything that can be mathematically differentiated..
e.g a number, a variable or an expression.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDifferentiable
(String name) Differentiable
(String name, ArrayList<String> data) -
Method Summary
Modifier and TypeMethodDescriptiongetData()
getDerivativeExpression
(ArrayList<String> derivedData) getName()
boolean
isChain()
void
void
void
simplifyDerivedData
(ArrayList<String> derivedData) Simplifies the contents of thederivedData
ArrayList.
-
Field Details
-
name
The representation of the Differentiable. -
data
-
-
Constructor Details
-
Differentiable
- Parameters:
name
- The representation of the Differentiable.
-
Differentiable
-
-
Method Details
-
isChain
public boolean isChain()- Returns:
- true if this name is automatically generated.. which implies that it was created to represent a Differentiable that is a part of the differentiation chain.
-
setName
-
getName
-
setData
-
getData
-
simplifyDerivedData
-
differentiate
- Parameters:
d
- The parent Derivative object.- Returns:
- the List containing the tokens of the derivative.
-
getDerivativeExpression
-
getExpression
- Returns:
- The string format of the data.
-