integrate0: Integration

View source: R/RcppExports.R

integrate0R Documentation

Integration

Description

Compute the integral \int_a^b f(x) dx.

Usage

integrate0(f, lower, upper, args)

Arguments

f

Function to integrate.

lower

Lower limit of integral.

upper

Upper limit of integral.

args

List of additional arguments from the function integrate_args.

Value

A list with the form of a integrate_result described in section "Integration" of the package vignette.

Examples

f = function(x) { exp(-x^2 / 2) }
args = integrate_args()
integrate0(f, 0, 10, args)


fntl documentation built on April 4, 2025, 1:53 a.m.