Els blocs s'afegiran aquí…

Integració numèrica i Monte Carlo – Resum

Integral d’exemple

$$ I = \int_0^{10} f(x)\,dx, \quad f(x)=x^2 e^{-x^3} $$

Valor exacte ≈ 1/3.


(a) Regla dels trapezis

(b) Monte Carlo cru

$$ I \approx \frac{10}{N}\sum_{i=1}^N f(X_i) $$

(c) Monte Carlo amb importance sampling