Вы находитесь на странице: 1из 7

Y

5
4
3
2
1

0 1 2 3 4 5 X

plantilla Excel excelCircle.xls (con macros VBA


Método de MonteCarlo

Area del círculo= 78.5398163397448

raiz(X^2+Y^2) <=5 entonces el punto est[a dentro del circulo


intento X= 5* radom [0,1] Y = 5* radom [0,1] X^2+Y^2= R^2
1 3.47101910104877 3.78872383211009 5.13832676 fuera area del circulo
2 3.44394842323639 0.52545925192287 3.48380369 dentro dentro 23
3 0.682931078707766 3.22358151804692 3.29512863 dentro fuera 7
4 1.86994847114322 0.28356821037024 1.8913271 dentro n= 30
5 3.95563576757521 0.1628648179275 3.95898715 dentro
6 1.35379921863348 3.93710761585668 4.16336267 dentro area del cudrante/area del cuadrado= dentr
7 2.91357077827562 2.84492027744411 4.07215742 dentro area del cudrante = 25*23/30
8 0.827336817026719 0.48222378893679 0.95761474 dentro cuadrante 19.1666667
9 0.575484912333318 4.74937061429127 4.78410954 dentro circulo=4 cuadrante
10 3.56424520493623 1.4111805244025 3.83344158 dentro
11 2.0030314053541 3.39205117328499 3.9393078 dentro
12 4.72929155365763 0.00762386410731 4.7292977 dentro
13 1.968823173032 0.49215893186119 2.02940511 dentro
14 3.56673465790127 4.22241195614491 5.5272379 fuera
15 1.87786767665658 4.16640805453612 4.57004848 dentro
16 3.4435249044548 1.48473776211916 3.74997467 dentro
17 1.36369324181922 1.75682907192502 2.22398463 dentro
18 2.04326757645948 1.23065828318902 2.38525936 dentro
19 4.41951678289406 4.01731538037063 5.97251634 fuera
20 4.78378901414204 1.18263978742084 4.92780623 dentro
21 1.8743998013982 0.4242043828362 1.92180227 dentro
22 4.76009582668195 3.90112547840658 6.15445304 fuera
23 3.90241160867788 3.54872782948669 5.27468346 fuera
24 1.24915712271281 3.2768567333438 3.50687661 dentro
25 2.95466175762743 4.96182047588905 5.77491892 fuera
26 1.74889605274997 4.77756075226267 5.08760495 fuera
27 0.641673067308264 1.35171091294465 1.4962843 dentro
28 2.59938448209058 1.17561514007386 2.8528706 dentro
29 1.37472719869922 2.83780481218282 3.15325404 dentro
30 1.68664249760247 0.04087783699473 1.68713779 dentro
31 1.48662369737875 3.40159201493709 3.71226053 dentro
32 3.73848485518948 3.43040755088486 5.0738511 fuera
33 0.711140104101354 2.62429488682254 2.71894169 dentro
34 1.25498133175543 3.25947732646737 3.49273111 dentro
35 1.7972769552008 1.10810100099518 2.11141949 dentro
36 0.039952044644088 3.852323810602 3.85253097 dentro
37 4.51755289535048 0.05865301342345 4.51793364 dentro
38 3.53130141173428 2.03602142401173 4.07620815 dentro
39 4.70424015381678 3.79060703672795 6.04140523 fuera
40 1.98413412133921 3.25297835889827 3.81033547 dentro
41 0.331089195541798 2.26345163017197 2.28753871 dentro
42 1.25169735657596 0.01039023737585 1.25174048 dentro
43 2.81529208785373 2.60849226296667 3.83798143 dentro
44 2.2658718664815 3.65652726897417 4.30167026 dentro
45 3.44235265174097 0.66302031364071 3.5056223 dentro
46 3.64171865352689 3.2109009527755 4.85510038 dentro
47 1.62783804236939 3.78612325884457 4.12123598 dentro
48 3.78258594172046 1.01044992730144 3.91522227 dentro
49 3.88741897312783 2.70130645807753 4.73382328 dentro
50 4.92469526504063 4.90447694102026 6.95028902 fuera
51 2.24246855036013 2.44975505162081 3.32113911 dentro
52 0.078182446599545 0.42334665664688 0.43050539 dentro
53 3.01276187838325 2.61724823889118 3.9908298 dentro
54 0.407089750866849 3.23583880804087 3.26134556 dentro
55 3.23686300447695 1.41109035047988 3.53107039 dentro
56 1.15595905586397 3.83292394463061 4.00344193 dentro
57 4.5518464169652 1.88953640539222 4.92845347 dentro
58 3.63807729730202 3.92744902802795 5.3535467 fuera
59 1.43776967744735 0.0707426637526 1.439509 dentro
60 3.23680897924364 4.3130762498141 5.39254663 fuera
a dentro del circulo

48
12

nte/area del cuadrado= dentro/cuadrdo


nte = 25*23/30 80

76.6666667
tiempo entre llegadas de las piezas que sigue una distirbuci[on Exponencial conmedia 5 min
tiempo de inspección que sigue una distribución Normal con media de 4 min y desv std de .5 min

-5*LN(1-ALEATORIO()) área de inspección


pieza tiempo entre llegadas llegó entró tiempo de inspección salió
1 0.0 0.0 0.0 3.4 3.5
2 25.5 25.5 25.5 3.8 29.3
3 1.3 26.8 29.3 4.1 33.4
4 2.1 28.9 33.4 3.8 37.2
5 10.6 39.5 39.5 4.4 44.0
6 0.3 39.9 44.0 3.7 47.7
7 1.0 40.8 47.7 4.2 51.9
8 2.9 43.7 51.9 3.0 54.9
9 3.2 46.9 54.9 4.0 58.9
10 4.2 51.1 58.9 3.7 62.6
11 9.5 60.6 62.6 3.4 66.0
12 6.0 66.6 66.6 4.0 70.6
13 1.3 67.9 70.6 4.5 75.0
14 5.5 73.4 75.0 3.7 78.7
15 4.8 78.1 78.7 3.6 82.3
16 4.8 82.9 82.9 3.8 86.7
17 6.6 89.5 89.5 3.7 93.2
18 8.6 98.1 98.1 3.9 102.0
19 0.5 98.6 102.0 4.3 106.3
20 17.5 116.1 116.1 4.1 120.2
21 1.2 117.3 120.2 4.7 124.9
22 3.9 121.3 124.9 4.0 128.8
23 3.9 125.2 128.8 3.6 132.5
24 3.6 128.7 132.5 2.8 135.3
25 4.4 133.2 135.3 3.8 139.1
26 2.9 136.1 139.1 4.1 143.3
27 2.9 139.0 143.3 4.7 147.9
28 6.3 145.3 147.9 3.7 151.6
29 1.4 146.6 151.6 4.7 156.3
30 1.5 148.2 156.3 3.7 160.0
lambda 30 cl/hr * hr/60 min = .5 cl/min
tiempo promedio 1/lambda 2 min/ cl
de estancia
en area inspetiempo promedio en la fila
3.4 0.0 promedio de espera en el sistema
3.8 0.0 6.9
6.6 2.5 promedio de espera en la fila
8.2 4.5 3.0
4.4 0.0
7.8 4.1
11.0 6.9
11.2 8.1
12.0 8.0
11.5 7.8
5.4 2.0
4.0 0.0
7.2 2.7
5.4 1.7
4.2 0.6
3.8 0.0
3.7 0.0
3.9 0.0
7.7 3.4
4.1 0.0
7.5 2.9
7.6 3.6
7.3 3.6
6.6 3.7
6.0 2.2
7.2 3.0
9.0 4.3
6.4 2.7
9.7 5.0
11.8 8.2
0 cl/hr * hr/60 min = .5 cl/min dist de llegadas, Poisson
dist tiempo entre llegadas exponencial

Вам также может понравиться