Description Usage Arguments Details Value See Also Examples
Use the trapezoid method to integrate a function
1 | trap(f, a, b, m = 100)
|
f |
function to integrate |
a |
the a-bound of integration |
b |
the b-bound of integration |
m |
the number of subintervals to calculate |
The trap function uses the trapezoid method to calculate
the integral of the function f over the interval from
a to b. The parameter m sets the
number of intervals to use when evaluating the trapezoids. Additional
options are passed to the function f when evaluating.
the value of the integral
Other integration:
adaptint(),
gaussint(),
giniquintile(),
mcint(),
midpt(),
revolution-solid,
romberg(),
simp38(),
simp()
Other newton-cotes:
adaptint(),
giniquintile(),
midpt(),
romberg(),
simp38(),
simp()
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.