public class Logarithm extends FunctionalTerm
| Constructor and Description |
|---|
Logarithm(Term term)
Creates a new logarithm term for the give inner 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, toLinearFormadd, doubleValue, evaluateMatrix, evaluateVector, evaluateVector, isContinuous, isLinear, min, minus, mult, replaceAllTerms, replaceAllTermspublic Logarithm(Term term)
term - a termpublic Term replaceTerm(Term toSubstitute, Term substitution)
TermreplaceTerm in class FunctionalTermtoSubstitute - the term to be substitutedsubstitution - the new termpublic java.lang.String toString()
toString in class FunctionalTermpublic Term derive(Variable v) throws NonDifferentiableException
Termderive in class Termv - a variable.NonDifferentiableException - if the term cannot be
differentiated.public Term simplify()
Termpublic boolean isContinuous(Variable v)
TermisContinuous in class Termpublic Constant value() throws java.lang.IllegalArgumentException
Termvalue in class FunctionalTermjava.lang.IllegalArgumentException - if this term contains at least on
variable.