Calc.IntegrateSimpson Method

Returns the integral of the function func from a to b. Integration is performed by Simpson’s rule.
public static double IntegrateSimpson( 
   IntegrationFunction func
   double a
   double b
   int maxiter
   double tol 
)

Parameters

func
IntegrationFunction

The function to integrate.

a
double

Start x of function.

b
double

End x of function.

maxiter
int

The maximum number of iterations. This can be usually be a large number since the iteration stops when the given tolrance has been reached.

tol
double

The tolerance wanted. Lower number will result in a higher number of iterations.

Return Value

double

The integral of the function.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition