calc_mcint: Calculate Monte Carlo Integral

Description Usage Arguments Value

Description

Takes in any numeric value and squares it.

Usage

1
calc_mcint(N, x_l = 0, x_u = 1, func = function(x) x^2)

Arguments

N

the number of random points

x_l,

x_u the lower and upper bounds on x, respectively

func

the function whose integral we are estimating

Value

Estimated integral given by Monte Carlo integration.


pommevilla/mcint documentation built on May 14, 2019, 2:03 a.m.