next up previous contents
Next: Integral with multiple variable Up: Definite integrals Previous: Definite integrals   Contents


Integral with one variable

 
int Integrate(
	      INTERVAL_VECTOR (* TheIntervalFunction)
	      (int,int,INTERVAL_VECTOR &), 
	      INTERVAL & TheDomain, 
	      int Iteration,
	      double Accuracy,
	      INTERVAL & Result)
The simplest integration procedure of ALIAS that should be used only for the simplest function. This procedure returns 1 if the calculation has been successful, -1 if the desired accuracy cannot be reached and -2 if the number of boxes has been exceeded.

If the function is at least twice differentiable it is possible to use:

 
int IntegrateTrapeze(
          INTERVAL_VECTOR (* TheIntervalFunction)
          (int,int,INTERVAL_VECTOR &), 
          INTERVAL_VECTOR (* SecondDerivative)
          (int,int,INTERVAL_VECTOR &), 
          INTERVAL & TheDomain, 
          int Iteration,
          double Accuracy,
          INTERVAL & Result)

int IntegrateRectangle(
          INTERVAL_VECTOR (* TheIntervalFunction)
          (int,int,INTERVAL_VECTOR &), 
          INTERVAL_VECTOR (* SecondDerivative)
          (int,int,INTERVAL_VECTOR &), 
          INTERVAL & TheDomain, 
          int Iteration,
          double Accuracy,
          INTERVAL & Result)
The procedure SecondDerivative in MakeF format allows to interval evaluate the second derivative of the function.

Alternatively it is possible to use:

 
int IntegrateTaylor(
          INTERVAL_VECTOR (* CoeffTaylor)
          (int,int,INTERVAL_VECTOR &), 
          int Order,
          INTERVAL & TheDomain, 
          int Iteration,
          double Accuracy,
          INTERVAL & Result)
The procedure CoeffTaylor, in MakeF format, should provide the interval evaluation of the Taylor coefficients of the function up to the order Order+1 (i.e. Order+2) coefficients).


next up previous contents
Next: Integral with multiple variable Up: Definite integrals Previous: Definite integrals   Contents
Jean-Pierre Merlet 2012-12-20