Description Usage Arguments Details Author(s) Examples
This function calculates the integration of y with respect to x.
1 | intg(y, x)
|
x |
a vector of real values, not necessarily sorted. |
y |
a vector of function values at x. |
(x,y)s are sorted according to ascending x values and then the integration is calculated as sum of the products of average of adjacent y values and the difference of adjacent x values.
Xiaochun Li
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.