public interface FieldUnivariateFunction
This interface is more general than CalculusFieldUnivariateFunction
because
the same instance can accept any field type, not just one.
UnivariateFunction
,
CalculusFieldUnivariateFunction
Modifier and Type | Method and Description |
---|---|
default <T extends CalculusFieldElement<T>> |
toCalculusFieldUnivariateFunction(Field<T> field)
Convert to a
CalculusFieldUnivariateFunction with a specific type. |
<T extends CalculusFieldElement<T>> |
value(T x)
Compute the value of the function.
|
default <T extends CalculusFieldElement<T>> CalculusFieldUnivariateFunction<T> toCalculusFieldUnivariateFunction(Field<T> field)
CalculusFieldUnivariateFunction
with a specific type.T
- the type of the field elementsfield
- field for the argument and value<T extends CalculusFieldElement<T>> T value(T x)
T
- the type of the field elementsx
- Point at which the function value should be computed.IllegalArgumentException
- when the activated method itself can
ascertain that a precondition, specified in the API expressed at the
level of the activated method, has been violated.
When Hipparchus throws an IllegalArgumentException
, it is
usually the consequence of checking the actual parameters passed to
the method.Copyright © 2016-2021 CS GROUP. All rights reserved.