integrate0 {fntl}R 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)


[Package fntl version 0.1.1 Index]