Class PolynomialFunction<R>
java.lang.Object
org.episteme.core.mathematics.analysis.PolynomialFunction<R>
- All Implemented Interfaces:
Function<R,R>, ContinuousFunction<R, R>, DifferentiableFunction<R, R>, Function<R, R>, IntegrableFunction<R, R>, Relation<R, R>
public class PolynomialFunction<R>
extends Object
implements DifferentiableFunction<R,R>, IntegrableFunction<R,R>
Represents a polynomial function P(x) over a Ring R.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
ConstructorsConstructorDescriptionPolynomialFunction(PolynomialRing.Polynomial<R> polynomial, PolynomialRing<R> ring) Creates a polynomial function from a polynomial object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the derivative of this function.Evaluates this function at the given point.Returns the codomain description.Returns the domain description.Returns the indefinite integral (antiderivative) of this function.Calculates the definite integral from start to end.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ContinuousFunction
isContinuousMethods inherited from interface DifferentiableFunction
isDifferentiableMethods inherited from interface Function
andThen, apply, compose, contains, evaluate, getBackend, setBackend
-
Constructor Details
-
PolynomialFunction
Creates a polynomial function from a polynomial object.- Parameters:
polynomial- the underlying polynomialring- the polynomial ring
-
-
Method Details
-
evaluate
-
differentiate
Description copied from interface:DifferentiableFunctionReturns the derivative of this function.- Specified by:
differentiatein interfaceDifferentiableFunction<R,R> - Returns:
- f'
-
integrate
Description copied from interface:IntegrableFunctionReturns the indefinite integral (antiderivative) of this function.- Specified by:
integratein interfaceIntegrableFunction<R,R> - Returns:
- F such that F' = f
-
integrate
Description copied from interface:IntegrableFunctionCalculates the definite integral from start to end.- Specified by:
integratein interfaceIntegrableFunction<R,R> - Parameters:
start- lower boundend- upper bound- Returns:
- integral_{start}^{end} f(x) dx
-
getDomain
-
getCodomain
-
toString
-