riemann: Calculate Riemann sums

View source: R/calculus_funs.R

riemannR Documentation

Calculate Riemann sums

Description

Calculate Riemann sums

Usage

riemann(fun, min, max, n = 2, ...)

Arguments

fun

function used to calculate the intergral using Riemann sums.

min

minimum x-value.

max

maximum x-value.

n

number of rectangles used to estimate Riemann sum.

...

other parameters passed to f.

Value

data.frame with three variables: xmin, height (i.e. f(xmin)), and area.


jbryer/VisualStats documentation built on Feb. 27, 2025, 6:19 p.m.