aboutsummaryrefslogtreecommitdiffstats
path: root/rqmc.cpp
diff options
context:
space:
mode:
authorBertrand <bertrand.horel@gmail.com>2016-02-15 19:16:29 +0000
committerBertrand <bertrand.horel@gmail.com>2016-02-15 19:16:29 +0000
commitcee0800329a0be3b27ae3907498ddf0883393382 (patch)
treee627eb5f44c4c6322015ab3e06a62e78bde5c3d3 /rqmc.cpp
parent43481c09afd990c99106d7efd6fe8a7c9a53d519 (diff)
downloadprojet_C++-cee0800329a0be3b27ae3907498ddf0883393382.tar.gz
création de nouvelles classes, composition de monte_carlo...
Diffstat (limited to 'rqmc.cpp')
-rw-r--r--rqmc.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/rqmc.cpp b/rqmc.cpp
index 6e5acd3..bca3c77 100644
--- a/rqmc.cpp
+++ b/rqmc.cpp
@@ -1,7 +1,4 @@
-#include "low_discrepancy.hpp"
-#include <vector>
-#include <gsl/gsl_cdf.h>
-#include "var_alea.hpp"
+#include "rqmc.hpp"
double frac_part(double x){
@@ -34,7 +31,7 @@ int main() {
m = m/I;
s = s/I - m*m;
- std::cout<<"espérance "<<m<<" taille de l'IC "<<sqrt(s)*1.64/10<<std::endl;
+ std::cout<<"espérance "<<m<<" taille de l'IC "<<sqrt(s)*1.96/10<<std::endl;
return 0;
}