functiontrapezoidalIntegration
Integration using the trapezoidal rule
Information
This function computes a definite integral using the trapezoidal rule.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | N | Number of integrand points | |
| Real | f | Integrands | |
| Real | deltaX | Width of interval for Trapezoidal integration |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | result | Result |
Revisions
-
August 23, 2010, by Wangda Zuo:
First implementation.