Learn R Programming

fntl (version 0.1.1)

integrate0: Integration

Description

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

Usage

integrate0(f, lower, upper, args)

Value

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

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.

Examples

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

Run the code above in your browser using DataLab