Calc.IntegrateSimpson Method

Returns the integral of the function func from a to b. Integration is performed by Simpson’s rule.
Public Shared Function IntegrateSimpson( _ 
ByVal func As IntegrationFunction, _ 
ByVal a As Double, _ 
ByVal b As Double, _ 
ByVal maxiter As Integer, _ 
ByVal tol As Double
) As Double
This language is not supported or no code example is available.
public static double IntegrateSimpson( 
IntegrationFunction func
double a
double b
int maxiter
double tol 
)
This language is not supported or no code example is available.
public:  
static double IntegrateSimpson( 
IntegrationFunction^ func
double a
double b
int maxiter
double tol 
)
This language is not supported or no code example is available.
public static function IntegrateSimpson( 
func : IntegrationFunction
a : double
b : double
maxiter : int
tol : double 
) : double;
This language is not supported or no code example is available.

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