gsm | R Documentation |
Monte Carlo Integration
gsm(h, f, rf, n = 1)
h |
function |
f |
function |
rf |
function |
n |
number of generated points |
h=function(x) sqrt(1-x^2) f=function(x) 2*x rf=function(n) sqrt(runif(n)) gsm(h, f, rf, n = 1e5)*4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.