1084:
109:
1090:
1723:
67:
1863:
138:
As points are randomly scattered inside the unit square, some fall within the unit circle. The fraction of points inside the circle over all points approaches pi/4 as the number of points goes toward infinity. This animation represents this method of computing pi out to 30,000
1571:{{Information |Description ={{en|1=As points are randomly scattered inside the unit square, some fall within the unit circle. The fraction of points inside the circle over all points approaches pi as the number of points goes toward infinity. This ani
1523:
1493:
1554:
1540:
Slowed animation to avoid looking like a blinky page element, improved resolution, added counter for number of points, shaded points inside/outside the circle. ==Mathematica 7.0 Source== <pre> tinyColor := {PointSize, color,
1733:
1463:
1131:– You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
1663:
1633:
38:
1843:
1893:
1623:
1703:
1613:
1374:
1338:
1302:
1394:
1358:
1286:
1258:
1243:
1230:
1322:
1203:
1186:
1938:
1250:
1778:
1768:
1595:
1581:
The following pages on the
English Knowledge (XXG) use this file (pages on other projects are not listed):
1100:
1948:
1553:
1548:
1522:
1517:
1492:
1487:
1097:
1564:
1963:
1958:
1590:
1533:
86:
78:
1265:
46:
1673:
1503:
1473:
1943:
73:
1077:
I, the copyright holder of this work, hereby publish it under the following license:
1903:
158:
108:
115:
1793:
1933:
1462:
1457:
37:
1828:
1968:
1643:
1818:
1798:
252:# In Windows the next line should provide the full path to convert.exe
1510:
Bigger text in the axes, and colors from ColorBrewer. Code in Python.
1713:
1808:
1430:
Click on a date/time to view the file as it appeared at that time.
1883:
1653:
1833:
1758:
1748:
1853:
1724:ויקיפדיה:מועדונים/חבורת אוילר/יבוא תמונה מתמטית מהויקי האנגלית
1693:
1683:
61:
258:#rcParams = "C:\Program Files\ImageMagick-6.9.3\convert.exe"
1585:
1170:
Add a one-line explanation of what this file represents
1923:
1918:
122:
85:
Commons is a freely licensed media file repository.
1873:
51:(500 × 500 pixels, file size: 476 KB, MIME type:
1908:
1788:
1743:
66:
1674:Introduction to Numerical Methods/Integration
1083:
8:
1480:Make the plot square and increase gif delay.
1266:https://commons.wikimedia.org/User:Nicoguaro
1138:https://creativecommons.org/licenses/by/3.0
1114:– to copy, distribute and transmit the work
1432:
1166:
1606:The following other wikis use this file:
1339:Creative Commons Attribution 3.0 Unported
1583:
1408:
1392:
1372:
1356:
1336:
1320:
1300:
1284:
1217:
1201:
1184:
1181:
1162:
1155:
7:
255:# since convert is a Windows command
1421:
1089:
1175:
1169:
1105:
1080:
1076:
132:
113:
98:
44:
1174:
1144:Creative Commons Attribution 3.0
1160:
1125:Under the following conditions:
1096:This file is licensed under the
1088:
1082:
107:
65:
31:
21:
1157:
133:
41:No higher resolution available.
14:
1930:Usage on zh-yue.wikipedia.org
1815:Usage on simple.wikipedia.org
1156:
26:
1:
1864:பை மாறிலியின் அண்ணளவாக்கங்கள்
1375:original creation by uploader
1870:Usage on test.wikipedia.org
1182:Items portrayed in this file
114:This plot was created with
55:, looped, 10 frames, 2.0 s)
1987:
1955:Usage on zh.wikipedia.org
1915:Usage on www.wikidata.org
1900:Usage on vi.wikipedia.org
1890:Usage on uk.wikipedia.org
1880:Usage on tr.wikipedia.org
1860:Usage on ta.wikipedia.org
1850:Usage on sv.wikipedia.org
1840:Usage on sr.wikipedia.org
1825:Usage on sl.wikipedia.org
1805:Usage on sh.wikipedia.org
1785:Usage on pt.wikipedia.org
1775:Usage on ko.wikipedia.org
1765:Usage on ja.wikipedia.org
1755:Usage on it.wikipedia.org
1740:Usage on id.wikipedia.org
1730:Usage on hi.wikipedia.org
1720:Usage on he.wikipedia.org
1710:Usage on fr.wikipedia.org
1700:Usage on fa.wikipedia.org
1690:Usage on eu.wikipedia.org
1680:Usage on eo.wikipedia.org
1670:Usage on en.wikibooks.org
1660:Usage on el.wikipedia.org
1650:Usage on da.wikipedia.org
1644:Arbre de cerca Monte Carlo
1640:Usage on ca.wikipedia.org
1630:Usage on bg.wikipedia.org
1620:Usage on be.wikipedia.org
1610:Usage on ar.wikipedia.org
1422:
148:
16:
1159:
1101:Attribution 3.0 Unported
177:
72:This is a file from the
1904:Phương pháp Monte Carlo
1570:
1539:
1509:
1488:15:38, 16 February 2017
1479:
1458:16:00, 16 February 2017
154:
144:
125:
76:. Information from its
1809:Monte Carlo simulacija
1734:मान्टे-कार्लो सिमुलेशन
1664:Π (μαθηματική σταθερά)
1596:User:Nicoguaro/Gallery
1518:18:29, 7 November 2011
79:description page there
1819:Monte Carlo algorithm
1799:Usuário:Juan90264/Pi
1549:23:12, 14 March 2011
1023:"monte_carlo_pi.gif"
231:matplotlib.animation
1829:Zgodovina števila π
1654:Monte Carlo-metoder
1634:Метод „Монте Карло“
1120:– to adapt the work
1844:Монте Карло метода
1834:Metoda Monte Carlo
1759:Metodo Monte Carlo
1749:Metode Monte Carlo
1714:Approximation de π
1591:Talk:Pi/FA subpage
1244:Wikimedia username
1231:author name string
219:matplotlib.patches
1894:Метод Монте-Карло
1854:Monte Carlo-metod
1794:Aproximações de π
1694:Montecarlo metodo
1684:Montekarla metodo
1624:Метад Монтэ-Карла
1602:Global file usage
1574:
1323:copyright license
1168:
1067:
1066:
207:matplotlib.pyplot
94:
93:
74:Wikimedia Commons
32:Global file usage
1978:
1614:طريقة مونت كارلو
1561:
1530:
1500:
1470:
1287:copyright status
1268:
1263:
1253:
1248:
1238:
1235:
1151:
1148:
1145:
1142:
1139:
1098:Creative Commons
1092:
1091:
1086:
1085:
1060:
1057:
1054:
1051:
1048:
1045:
1042:
1039:
1036:
1033:
1030:
1027:
1024:
1021:
1018:
1015:
1012:
1009:
1006:
1003:
1000:
997:
994:
991:
988:
985:
982:
979:
976:
973:
970:
967:
964:
961:
958:
955:
952:
949:
946:
943:
940:
937:
934:
931:
928:
925:
922:
919:
916:
913:
910:
907:
904:
901:
898:
895:
892:
889:
886:
883:
880:
877:
874:
871:
868:
865:
862:
859:
856:
853:
850:
847:
844:
841:
838:
835:
832:
829:
826:
823:
820:
817:
814:
811:
808:
805:
802:
799:
796:
793:
790:
787:
784:
781:
778:
775:
772:
769:
766:
763:
760:
757:
754:
751:
748:
745:
742:
739:
736:
733:
730:
727:
724:
721:
718:
715:
712:
709:
706:
703:
700:
697:
694:
691:
688:
685:
682:
679:
676:
673:
670:
667:
664:
661:
658:
655:
652:
649:
646:
643:
640:
637:
634:
631:
628:
625:
622:
619:
616:
613:
610:
607:
604:
601:
598:
595:
592:
589:
586:
583:
580:
577:
574:
571:
568:
565:
562:
559:
556:
553:
550:
547:
544:
541:
538:
535:
532:
529:
526:
523:
520:
517:
514:
511:
508:
505:
502:
499:
496:
493:
490:
487:
484:
481:
478:
475:
472:
469:
466:
463:
460:
457:
454:
451:
448:
445:
442:
439:
436:
433:
430:
427:
424:
421:
418:
415:
412:
409:
406:
403:
400:
397:
394:
391:
388:
385:
382:
379:
376:
373:
370:
367:
364:
361:
358:
355:
352:
349:
346:
343:
340:
337:
334:
331:
328:
325:
322:
319:
316:
313:
310:
307:
304:
301:
298:
295:
292:
289:
286:
283:
280:
277:
274:
271:
268:
265:
262:
259:
256:
253:
250:
247:
244:
241:
238:
235:
232:
229:
226:
223:
220:
217:
214:
211:
208:
205:
202:
199:
196:
193:
190:
187:
184:
181:
150:
137:
129:
123:
111:
90:
69:
68:
62:
56:
54:
1986:
1985:
1981:
1980:
1979:
1977:
1976:
1975:
1704:روش مونتهکارلو
1600:
1582:
1575:
1567:
1559:
1536:
1528:
1506:
1498:
1476:
1468:
1424:
1423:
1420:
1419:
1418:
1417:
1416:
1415:
1414:
1413:
1411:
1401:
1400:
1399:
1397:
1386:
1385:
1384:
1383:
1382:
1381:
1380:
1379:
1377:
1365:
1364:
1363:
1361:
1350:
1349:
1348:
1347:
1346:
1345:
1344:
1343:
1341:
1329:
1328:
1327:
1325:
1314:
1313:
1312:
1311:
1310:
1309:
1308:
1307:
1305:
1293:
1292:
1291:
1289:
1278:
1277:
1276:
1275:
1274:
1273:
1272:
1271:
1270:
1269:
1264:
1261:
1255:
1254:
1249:
1246:
1240:
1239:
1236:
1233:
1224:
1223:
1222:
1220:
1210:
1209:
1208:
1206:
1195:
1194:
1193:
1192:
1191:
1189:
1173:
1172:
1171:
1154:
1153:
1152:
1149:
1146:
1143:
1140:
1137:
1136:
1104:
1093:
1079:
1078:
1073:
1068:
1063:
1062:
1061:
1058:
1055:
1052:
1049:
1046:
1043:
1040:
1037:
1034:
1031:
1028:
1025:
1022:
1019:
1016:
1013:
1010:
1007:
1004:
1001:
998:
995:
992:
989:
986:
983:
980:
977:
974:
971:
968:
965:
962:
959:
956:
953:
950:
947:
944:
941:
938:
935:
932:
929:
926:
923:
920:
917:
914:
911:
908:
905:
902:
899:
896:
893:
890:
887:
884:
881:
878:
875:
872:
869:
866:
863:
860:
857:
854:
851:
848:
845:
842:
839:
836:
833:
830:
827:
824:
821:
818:
815:
812:
809:
806:
803:
800:
797:
794:
791:
788:
785:
782:
779:
776:
773:
770:
767:
764:
761:
758:
755:
752:
749:
746:
743:
740:
737:
734:
731:
728:
725:
722:
719:
716:
713:
710:
707:
704:
701:
698:
695:
692:
689:
686:
683:
680:
677:
674:
671:
668:
665:
662:
659:
656:
653:
650:
647:
644:
641:
638:
635:
632:
629:
626:
623:
620:
617:
614:
611:
608:
605:
602:
599:
596:
593:
590:
587:
584:
581:
578:
575:
572:
569:
566:
563:
560:
557:
554:
551:
548:
545:
542:
539:
536:
533:
530:
527:
524:
521:
518:
515:
512:
509:
506:
503:
500:
497:
494:
491:
488:
485:
482:
479:
476:
473:
470:
467:
464:
461:
458:
455:
452:
449:
446:
443:
440:
437:
434:
431:
428:
425:
422:
419:
416:
413:
410:
407:
404:
401:
398:
395:
392:
389:
386:
383:
380:
377:
374:
371:
368:
365:
362:
359:
356:
353:
350:
347:
344:
341:
338:
335:
332:
329:
326:
323:
320:
317:
314:
311:
308:
305:
302:
299:
296:
293:
290:
287:
284:
281:
278:
275:
272:
269:
266:
263:
260:
257:
254:
251:
248:
245:
242:
239:
236:
233:
230:
227:
224:
221:
218:
215:
212:
209:
206:
203:
200:
197:
194:
191:
188:
185:
182:
179:
176:
168:
140:
127:
121:
120:
119:
103:
96:
95:
84:
83:
82:is shown below.
58:
52:
50:
43:
42:
12:
11:
5:
1984:
1982:
1974:
1973:
1972:
1971:
1966:
1961:
1953:
1952:
1951:
1946:
1941:
1936:
1928:
1927:
1926:
1921:
1913:
1912:
1911:
1906:
1898:
1897:
1896:
1888:
1887:
1886:
1878:
1877:
1876:
1868:
1867:
1866:
1858:
1857:
1856:
1848:
1847:
1846:
1838:
1837:
1836:
1831:
1823:
1822:
1821:
1813:
1812:
1811:
1803:
1802:
1801:
1796:
1791:
1783:
1782:
1781:
1773:
1772:
1771:
1763:
1762:
1761:
1753:
1752:
1751:
1746:
1738:
1737:
1736:
1728:
1727:
1726:
1718:
1717:
1716:
1708:
1707:
1706:
1698:
1697:
1696:
1688:
1687:
1686:
1678:
1677:
1676:
1668:
1667:
1666:
1658:
1657:
1656:
1648:
1647:
1646:
1638:
1637:
1636:
1628:
1627:
1626:
1618:
1617:
1616:
1604:
1603:
1599:
1598:
1593:
1588:
1580:
1579:
1578:
1573:
1572:
1569:
1565:
1562:
1556:
1551:
1546:
1543:
1542:
1538:
1534:
1531:
1525:
1520:
1515:
1512:
1511:
1508:
1504:
1501:
1495:
1490:
1485:
1482:
1481:
1478:
1474:
1471:
1465:
1460:
1455:
1451:
1450:
1447:
1444:
1441:
1438:
1435:
1428:
1427:
1412:
1409:
1407:
1406:
1405:
1404:
1403:
1402:
1398:
1393:
1391:
1390:
1389:
1388:
1387:
1378:
1373:
1371:
1370:
1369:
1368:
1367:
1366:
1362:
1359:source of file
1357:
1355:
1354:
1353:
1352:
1351:
1342:
1337:
1335:
1334:
1333:
1332:
1331:
1330:
1326:
1321:
1319:
1318:
1317:
1316:
1315:
1306:
1301:
1299:
1298:
1297:
1296:
1295:
1294:
1290:
1285:
1283:
1282:
1281:
1280:
1279:
1257:
1256:
1242:
1241:
1229:
1228:
1227:
1226:
1225:
1221:
1218:
1216:
1215:
1214:
1213:
1212:
1211:
1207:
1202:
1200:
1199:
1198:
1197:
1196:
1190:
1185:
1183:
1180:
1179:
1178:
1177:
1176:
1165:
1164:
1161:
1158:
1135:
1134:
1133:
1132:
1123:
1122:
1121:
1115:
1108:You are free:
1095:
1094:
1081:
1075:
1074:
1072:
1069:
1065:
1064:
1041:savefig_kwargs
744:, \pi \approx
178:
175:
172:
171:
169:
166:
162:
161:
156:
152:
151:
146:
142:
141:
130:
106:
105:
104:
102:
99:
97:
92:
91:
70:
60:
59:
40:
36:
35:
34:
29:
24:
19:
13:
10:
9:
6:
4:
3:
2:
1983:
1970:
1967:
1965:
1962:
1960:
1957:
1956:
1954:
1950:
1947:
1945:
1942:
1940:
1937:
1935:
1932:
1931:
1929:
1925:
1922:
1920:
1917:
1916:
1914:
1910:
1907:
1905:
1902:
1901:
1899:
1895:
1892:
1891:
1889:
1885:
1882:
1881:
1879:
1875:
1872:
1871:
1869:
1865:
1862:
1861:
1859:
1855:
1852:
1851:
1849:
1845:
1842:
1841:
1839:
1835:
1832:
1830:
1827:
1826:
1824:
1820:
1817:
1816:
1814:
1810:
1807:
1806:
1804:
1800:
1797:
1795:
1792:
1790:
1787:
1786:
1784:
1780:
1777:
1776:
1774:
1770:
1767:
1766:
1764:
1760:
1757:
1756:
1754:
1750:
1747:
1745:
1742:
1741:
1739:
1735:
1732:
1731:
1729:
1725:
1722:
1721:
1719:
1715:
1712:
1711:
1709:
1705:
1702:
1701:
1699:
1695:
1692:
1691:
1689:
1685:
1682:
1681:
1679:
1675:
1672:
1671:
1669:
1665:
1662:
1661:
1659:
1655:
1652:
1651:
1649:
1645:
1642:
1641:
1639:
1635:
1632:
1631:
1629:
1625:
1622:
1621:
1619:
1615:
1612:
1611:
1609:
1608:
1607:
1601:
1597:
1594:
1592:
1589:
1587:
1584:
1576:
1568:
1563:
1557:
1555:
1552:
1550:
1547:
1545:
1544:
1537:
1532:
1526:
1524:
1521:
1519:
1516:
1514:
1513:
1507:
1502:
1496:
1494:
1491:
1489:
1486:
1484:
1483:
1477:
1472:
1466:
1464:
1461:
1459:
1456:
1453:
1452:
1448:
1445:
1442:
1439:
1436:
1434:
1433:
1431:
1425:
1396:
1376:
1360:
1340:
1324:
1304:
1288:
1267:
1260:
1252:
1245:
1232:
1205:
1188:
1130:
1127:
1126:
1124:
1119:
1116:
1113:
1110:
1109:
1107:
1106:
1102:
1099:
1087:
1070:
1035:'imagemagick'
969:FuncAnimation
173:
170:
164:
163:
160:
157:
153:
147:
143:
136:
131:
124:
117:
110:
100:
88:
81:
80:
75:
71:
64:
63:
57:
48:
39:
33:
30:
28:
25:
23:
20:
18:
15:
1605:
1429:
1426:File history
1128:
1117:
1111:
134:
87:You can help
77:
45:
22:File history
1303:copyrighted
1129:attribution
945:add_subplot
174:Python code
165:Source code
139:iterations.
126:Description
1577:File usage
1558:360 × 369
1527:500 × 500
1497:640 × 480
1467:500 × 500
1443:Dimensions
1395:media type
1219:some value
1141:CC BY 3.0
687:markersize
615:markersize
567:add_artist
243:matplotlib
183:__future__
128:Pi 30K.gif
116:Matplotlib
47:Pi_30K.gif
27:File usage
1884:Pi sayısı
1566:CaitlinJo
1505:Nicoguaro
1475:Nicoguaro
1440:Thumbnail
1437:Date/Time
1410:image/gif
1251:Nicoguaro
1237:nicoguaro
1071:Licensing
963:animation
768:pi_approx
699:linewidth
627:linewidth
474:pi_approx
303:"#eeeeee"
294:"#377eb8"
285:"#e41a1c"
237:animation
167:InfoField
159:nicoguaro
135:English:
53:image/gif
1924:Q1130396
1779:몬테카를로 방법
1560:(363 KB)
1529:(373 KB)
1499:(476 KB)
1469:(476 KB)
1163:Captions
1118:to remix
1112:to share
1103:license.
864:logspace
786:"square"
669:out_circ
663:out_circ
507:mpatches
438:out_circ
270:rcParams
261:rcParams
249:rcParams
225:mpatches
189:division
149:Own work
1939:蒙地卡羅樹搜尋
1919:Q232207
1769:モンテカルロ法
1454:current
1449:Comment
1204:creator
1187:depicts
1167:English
1050:'delay'
912:figsize
738:"$ n =
351:uniform
101:Summary
49:
1964:圆周率近似值
1959:蒙地卡羅方法
1949:蒙地卡羅方法
1541:Point[
1535:Rayhem
1029:writer
987:frames
981:update
906:figure
756:format
747:{:.4f}
675:marker
603:marker
573:circle
501:circle
345:random
309:update
246:import
228:import
216:import
204:import
192:import
186:import
155:Author
145:Source
112:
1005:False
852:round
729:title
711:color
639:color
549:color
513:Wedge
492:shape
429:<=
195:numpy
1944:電腦模擬
1446:User
1150:true
1147:true
1017:save
999:blit
993:nvec
888:nvec
840:nvec
822:ylim
798:xlim
780:axis
717:blue
657:plot
597:circ
591:circ
585:plot
555:gray
486:circ
465:>
402:circ
381:size
369:high
297:gray
288:blue
267:'cm'
240:from
180:from
17:File
1969:圓周率
1934:圓周率
1259:URL
1011:ani
975:fig
957:ani
951:111
939:fig
900:plt
894:fig
816:plt
792:plt
774:plt
750:$ "
723:plt
681:'.'
651:plt
645:red
609:'.'
579:plt
456:pts
444:pts
420:pts
408:pts
357:low
333:pts
327:cla
306:def
279:red
213:plt
1909:Pi
1874:Pi
1789:Pi
1744:Pi
1586:Pi
1262::
1247::
1234::
1059:})
933:ax
930:))
885:))
882:10
858:np
846:np
771:))
741:{}
561:ax
543:90
528:),
516:((
459:**
447:**
423:**
411:**
399:))
339:np
330:()
321:ax
318:):
276:14
234:as
222:as
210:as
201:np
198:as
1056:6
1053::
1047:{
1044:=
1038:,
1032:=
1026:,
1020:(
1014:.
1008:)
1002:=
996:,
990:=
984:,
978:,
972:(
966:.
960:=
954:)
948:(
942:.
936:=
927:5
924:,
921:5
918:(
915:=
909:(
903:.
897:=
891:=
879:,
876:5
873:,
870:2
867:(
861:.
855:(
849:.
843:=
837:)
834:1
831:,
828:0
825:(
819:.
813:)
810:1
807:,
804:0
801:(
795:.
789:)
783:(
777:.
765:,
762:n
759:(
753:.
735:r
732:(
726:.
720:)
714:=
708:,
705:0
702:=
696:,
693:1
690:=
684:,
678:=
672:,
666:,
660:(
654:.
648:)
642:=
636:,
633:0
630:=
624:,
621:1
618:=
612:,
606:=
600:,
594:,
588:(
582:.
576:)
570:(
564:.
558:)
552:=
546:,
540:,
537:0
534:,
531:1
525:0
522:,
519:0
510:.
504:=
498:n
495:/
489:.
483:*
480:4
477:=
471:]
468:1
462:2
453:+
450:2
441:=
435:]
432:1
426:2
417:+
414:2
405:=
396:n
393:,
390:2
387:(
384:=
378:,
375:1
372:=
366:,
363:0
360:=
354:(
348:.
342:.
336:=
324:.
315:n
312:(
300:=
291:=
282:=
273:=
264:=
118:.
89:.
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.