Description Usage Arguments Value
Takes in any numeric value and squares it.
1 | calc_mcint(N, x_l = 0, x_u = 1, func = function(x) x^2)
|
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 |
Estimated integral given by Monte Carlo integration.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.