sm: Monte Carlo Integration

View source: R/sm.R

smR Documentation

Monte Carlo Integration

Description

Monte Carlo Integration

Usage

sm(h, a = 0, b = 1, n = 1)

Arguments

h

function

a

lower limit

b

upper limit

n

number of generated points

Examples

h=function(x) sqrt(1-x^2)
sm(h,a=0,b=1,n=1e5)*4

ferielachaibou/stat617course documentation built on May 9, 2022, 12:05 a.m.