public class Exp extends FunctionalTerm
Constructor and Description |
---|
Exp(Term term)
Creates a new exponential term with the given term.
|
Modifier and Type | Method and Description |
---|---|
Term |
derive(Variable v)
Differentiates the term with respect to the given variable.
|
boolean |
isContinuous(Variable v)
Checks whether this term is continuous in v.
|
Term |
replaceTerm(Term toSubstitute,
Term substitution)
Replaces each occurrence of "toSubstitute" by "substitution" and
return the new term.
|
Term |
simplify()
Simplifies this term in an equivalent way:
- Replaces products that contain a zero by the constant zero - Removes a term one from products - Removes a term zero from sums - Aggregates constants in sums, products, and minimums - Evaluates functional terms on constants - Simplifies fractions where possible. |
java.lang.String |
toString() |
Constant |
value()
Computes the actual value of this term if it contains no variables.
|
collapseAssociativeOperations, expandAssociativeOperations, getAbsoluteValues, getMaximums, getMinimums, getProducts, getTerm, getVariables, isInteger, toLinearForm
add, doubleValue, evaluateMatrix, evaluateVector, evaluateVector, isContinuous, isLinear, min, minus, mult, replaceAllTerms, replaceAllTerms
public Exp(Term term)
term
- the potentiated term.public Term replaceTerm(Term toSubstitute, Term substitution)
Term
replaceTerm
in class FunctionalTerm
toSubstitute
- the term to be substitutedsubstitution
- the new termpublic java.lang.String toString()
toString
in class FunctionalTerm
public Constant value() throws java.lang.IllegalArgumentException
Term
value
in class FunctionalTerm
java.lang.IllegalArgumentException
- if this term contains at least on
variable.public Term derive(Variable v) throws NonDifferentiableException
Term
derive
in class Term
v
- a variable.NonDifferentiableException
- if the term cannot be
differentiated.public boolean isContinuous(Variable v)
Term
isContinuous
in class Term
public Term simplify()
Term