Description Usage Arguments Value Note Author(s) References See Also Examples

A function that calculates the approximate value of the definite integral of a continuous function. In other words, it can help plot the area under the curve of the plotted function between two limits.

1 | ```
simpson(x, y)
``` |

`x` |
A vector of the values at which the function is to be plotted. |

`y` |
A vector with the values of the function at the corresponding x-values. |

A single numerical value of the approximate area under the curve generated with the x and y values.

Compared to the trapezoidal algorithm, this is usually more accurate.

Douaa Mugahid

Hennion, P.E.(1962). Algorithm 84: Simpson's integration. Communications of ACM. 5(4), 208

1 2 3 |

RCASPAR documentation built on Nov. 1, 2018, 3:48 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.