Description Usage Arguments Details References See Also Examples
The numerical integration of ftn from a to b,using the trapezoidal rule with n subdivisions.
1 | trapezoid(ftn, a, b, n = 100)
|
ftn |
a function of single variable. |
a |
lower bound of the integration. Must be finite. |
b |
upper bound of the integration. Must be finite and assume b > a. |
n |
number of partitions. |
The integration calculates the trapezoid area of each subdivisions and sums them up.
Owen Jones,Robert Maillardet,Andrew Robinson (2014).Introduction to Scientific Programming and Simulation Using R ; Second Edition
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.