trapezoid


trapezoid, an R code which estimates an integral using the trapezoid rule.

Licensing:

Copyright 2016 James P. Howard, II

The computer code and data files on this web page are distributed under the BSD-2-Clause license.

Languages:

trapezoid is available in an R version.

Related Data and Programs:

mcint, an R code which estimates an integral using the Monte Carlo method.

mcint2, an R code which estimates an integral over a rectangle using the Monte Carlo method.

midpt, an R code which estimates an integral using the midpoint method.

simp, an R code which estimates an integral using Simpson's rule.

simp38, an R code which estimates an integral using Simpson's 3/8rule.

trapezoid_test

Author:

Original R code by James Howard; Modifications by John Burkardt.

Reference:

  1. James Howard,
    Computational Methods for Numerical Analysis with R,
    CRC Press, 2017,
    ISBN13: 978-1-4987-2363-3.
  2. https://CRAN.R-project.org/package=cmna

Source Code:


Last revised on 26 April 2021.