Class Constant<R extends Ring<R>>
java.lang.Object
org.jscience.mathematics.function.Function<R,R>
org.jscience.mathematics.function.Polynomial<R>
org.jscience.mathematics.function.Constant<R>
- All Implemented Interfaces:
Serializable
,javolution.lang.Immutable
,javolution.lang.Realtime
,javolution.lang.ValueType
,GroupAdditive<Polynomial<R>>
,Ring<Polynomial<R>>
,Structure<Polynomial<R>>
This class represents a constant function (polynomial of degree 0).
- See Also:
-
Method Summary
Methods inherited from class org.jscience.mathematics.function.Polynomial
compose, compose, copy, differentiate, equals, evaluate, getCoefficient, getOrder, getTerms, getVariables, hashCode, integrate, minus, minus, opposite, plus, plus, plus, pow, times, times, times, toText, valueOf, valueOf
-
Method Details
-
valueOf
Returns a constant function of specified value.- Parameters:
value
- the value returned by this function.- Returns:
- the corresponding constant function.
-
getValue
Returns the constant value for this function.- Returns:
getCoefficient(Term.CONSTANT)
-