Package org.hipparchus.complex
Class ComplexUnivariateIntegrator
java.lang.Object
org.hipparchus.complex.ComplexUnivariateIntegrator
Wrapper to perform univariate complex integration using an underlying real integration algorithms.
- Since:
- 2.0
-
Constructor Summary
ConstructorDescriptionComplexUnivariateIntegrator
(UnivariateIntegrator integrator) Crate a complex integrator from a real integrator. -
Method Summary
Modifier and TypeMethodDescriptionintegrate
(int maxEval, CalculusFieldUnivariateFunction<Complex> f, Complex start, Complex end) Integrate a function along a straight path between points.integrate
(int maxEval, CalculusFieldUnivariateFunction<Complex> f, Complex start, Complex... path) Integrate a function along a polyline path between any number of points.
-
Constructor Details
-
ComplexUnivariateIntegrator
Crate a complex integrator from a real integrator.- Parameters:
integrator
- underlying real integrator to use
-
-
Method Details
-
integrate
public Complex integrate(int maxEval, CalculusFieldUnivariateFunction<Complex> f, Complex start, Complex end) Integrate a function along a straight path between points.- Parameters:
maxEval
- maximum number of evaluations (real and imaginary parts are evaluated separately, so up to twice this number may be used)f
- the integrand functionstart
- start point of the integration pathend
- end point of the integration path- Returns:
- the value of integral along the straight path
-
integrate
public Complex integrate(int maxEval, CalculusFieldUnivariateFunction<Complex> f, Complex start, Complex... path) Integrate a function along a polyline path between any number of points.- Parameters:
maxEval
- maximum number of evaluations (real and imaginary parts are evaluated separately and each path segments are also evaluated separately, so up to 2n times this number may be used for n segments)f
- the integrand functionstart
- start point of the integration pathpath
- successive points defining the path vertices- Returns:
- the value of integral along the polyline path
-