Description Usage Arguments Value Author(s) Examples
Compute an approximation of the integral of the function f(x) with respect to dx in the range [a, b] by Monte-Carlo integration using uniform sampling.
1 | mc_int(x_range, fun, B, seed = 1291)
|
x_range |
A |
fun |
A |
B |
A |
seed |
A |
A list
containing the following attributes:
Estimated value of the integral
Estimated variance of the estimator
Stephane Guerrier
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.