Description Usage Arguments Details
Trapezoidal rule for approximating the definite integral
1 | trapezoid(x, y)
|
x, y |
numeric vectors. |
In y = f(x) then we can approximate integral of f using trapezoid rule:
<e2><88><ab> f(x) dx = sum((x[i+1]-x[i]) * (f(x[i+1]) + f(x[i])))/2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.