Class Trapezoidal
- java.lang.Object
-
- dev.nm.analysis.integration.univariate.riemann.newtoncotes.NewtonCotes
-
- dev.nm.analysis.integration.univariate.riemann.newtoncotes.Trapezoidal
-
- All Implemented Interfaces:
Integrator
,IterativeIntegrator
public class Trapezoidal extends NewtonCotes
The Trapezoidal rule is a closed type Newton-Cotes formula, where the integral interval is evenly divided into N sub-intervals. Each sub-interval is divided into two in each iteration.- See Also:
- Wikipedia: Trapezoidal rule
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class dev.nm.analysis.integration.univariate.riemann.newtoncotes.NewtonCotes
NewtonCotes.Type
-
-
Constructor Summary
Constructors Constructor Description Trapezoidal(double precision, int maxIterations)
Construct an integrator that implements the Trapezoidal rule.
-
Method Summary
-
Methods inherited from class dev.nm.analysis.integration.univariate.riemann.newtoncotes.NewtonCotes
getMaxIterations, getPrecision, h, integrate, next
-
-