{"id":17385,"date":"2022-01-20T20:54:29","date_gmt":"2022-01-20T12:54:29","guid":{"rendered":"http:\/\/www.jdcui.com\/?p=17385"},"modified":"2025-07-05T07:13:18","modified_gmt":"2025-07-04T23:13:18","slug":"%e6%95%b0%e5%ad%a6%e7%bc%96%e7%a8%8b-%e8%92%99%e7%89%b9%e5%8d%a1%e6%b4%9b%e6%a8%a1%e6%8b%9f%e6%b3%95%e6%b1%82%e5%9c%86%e5%91%a8%e7%8e%87%cf%80-monte-carlo-method-to-find-pi","status":"publish","type":"post","link":"http:\/\/www.jdcui.com\/?p=17385","title":{"rendered":"[\u6570\u5b66][\u7f16\u7a0b] \u8499\u7279\u5361\u6d1b\u6a21\u62df\u6cd5\u6c42\u5706\u5468\u7387\u03c0 (Monte Carlo method to find PI)"},"content":{"rendered":"<p><span style=\"color: #ff00ff; background-color: #ccffcc;\"><strong>\u5b9e\u5e72\u3001\u5b9e\u8df5\u3001\u79ef\u7d2f\u3001\u601d\u8003\u3001\u521b\u65b0\uff01<\/strong><\/span><\/p>\n<hr \/>\n<p>\u8499\u7279\u00b7 \u5361\u7f57\u65b9\u6cd5\u662f\u4e00\u79cd\u901a\u8fc7\u6982\u7387\u6765\u5f97\u5230\u95ee\u9898\u8fd1\u4f3c\u89e3\u7684\u65b9\u6cd5\u3002\u5176\u5b9e\u4e4b\u524d\u4e5f\u6d4b\u8bd5\u8fc7\uff0c\u7528\u5728\u8fd9\u4e2a\u6295\u9488\u6c42PI\uff08<strong><a title=\"[\u6570\u5b66][\u6982\u7387] Buffon\u2019s Needle problem [\u84b2\u4e30\u6295\u9488\u95ee\u9898]\" href=\"http:\/\/www.jdcui.com\/?p=1301\" target=\"_blank\" rel=\"noopener\">[\u6570\u5b66][\u6982\u7387] Buffon\u2019s Needle problem [\u84b2\u4e30\u6295\u9488\u95ee\u9898]<\/a><\/strong>\uff09\uff0c\u6700\u8fd1\u53c8\u641e\u8d77\u7b97\u6cd5\u7814\u7a76\uff0c\u987a\u5e26\u518d\u6574\u4f53\u5404\u79cd\u4e1c\u897f\u90fd\u6d4b\u7b97\u4e00\u6b21\u5427\u3002<\/p>\n<p>\u8499\u7279\u00b7 \u5361\u7f57\u65b9\u6cd5\u6c42\u5706\u5468\u7387PI \u7f51\u4e0a\u5f88\u591a\u4f8b\u5b50\u3002\u76f4\u63a5\u4e0a\u56fe\u5427\u3002<\/p>\n<div style=\"width: 726px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-17385-1\" width=\"726\" height=\"748\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"http:\/\/www.jdcui.com\/wp-content\/uploads\/2022\/01\/Monte-Carlo-20-28-58.mp4?_=1\" \/><a href=\"http:\/\/www.jdcui.com\/wp-content\/uploads\/2022\/01\/Monte-Carlo-20-28-58.mp4\">http:\/\/www.jdcui.com\/wp-content\/uploads\/2022\/01\/Monte-Carlo-20-28-58.mp4<\/a><\/video><\/div>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-17389\" src=\"http:\/\/www.jdcui.com\/wp-content\/uploads\/2022\/01\/Monte-Carlo_1.png\" alt=\"\" width=\"727\" height=\"749\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-17390\" src=\"http:\/\/www.jdcui.com\/wp-content\/uploads\/2022\/01\/Monte-Carlo_2.png\" alt=\"\" width=\"727\" height=\"749\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-17391\" src=\"http:\/\/www.jdcui.com\/wp-content\/uploads\/2022\/01\/Monte-Carlo_3.png\" alt=\"\" width=\"727\" height=\"749\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-17392\" src=\"http:\/\/www.jdcui.com\/wp-content\/uploads\/2022\/01\/Monte-Carlo_4.png\" alt=\"\" width=\"727\" height=\"749\" \/><\/p>\n<hr \/>\n<p style=\"text-align: center;\"><strong><div  class=\"thumbs-rating-container\" id=\"thumbs-rating-17385\" data-content-id=\"17385\"><button class=\"thumbs-rating-up thumbs-rating-voted\" onclick=\"thumbs_rating_vote(17385, 1);\">Vote Up +2<\/button> <button class=\"thumbs-rating-down\" onclick=\"thumbs_rating_vote(17385, 2);\">Vote Down -0<\/button><span class=\"thumbs-rating-already-voted\">You already voted!<\/span><\/div><\/strong><\/p>\n<ul style=\"list-style-type: square;\">\n<li style=\"text-align: left;\"><strong>\u5fae\u4fe1\u516c\u4f17\u53f7\u00a0(\u00a0<span style=\"color: #0000ff;\">Wechat\u00a0Subscription<\/span>)<\/strong><\/li>\n<\/ul>\n<p><a href=\"http:\/\/www.jdcui.com\/wp-content\/uploads\/2017\/01\/QRCODE.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3636\" src=\"http:\/\/www.jdcui.com\/wp-content\/uploads\/2017\/01\/QRCODE.jpg\" alt=\"WeChat_QRCode\" width=\"250\" height=\"255\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><strong>\u6b22\u8fce\u5173\u6ce8\u00a0\u201c<span style=\"color: #ff00ff;\">\u7ed3\u6784\u4e4b\u65c5<\/span>\u201d\u00a0\u5fae\u4fe1\u516c\u4f17\u53f7<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b9e\u5e72\u3001\u5b9e\u8df5\u3001\u79ef\u7d2f\u3001\u601d\u8003\u3001\u521b\u65b0\uff01 \u8499\u7279\u00b7 \u5361\u7f57\u65b9\u6cd5\u662f\u4e00\u79cd\u901a\u8fc7\u6982\u7387\u6765\u5f97\u5230\u95ee\u9898\u8fd1\u4f3c\u89e3\u7684\u65b9\u6cd5\u3002\u5176\u5b9e\u4e4b\u524d\u4e5f\u6d4b\u8bd5\u8fc7\uff0c\u7528\u5728\u8fd9\u4e2a\u6295\u9488\u6c42PI\uff08[\u6570\u5b66][\u6982\u7387] Buffon\u2019s Needle problem [\u84b2\u4e30\u6295\u9488\u95ee\u9898]\uff09\uff0c\u6700\u8fd1\u53c8\u641e\u8d77\u7b97\u6cd5\u7814\u7a76\uff0c\u987a\u5e26\u518d\u6574\u4f53\u5404\u79cd\u4e1c\u897f\u90fd\u6d4b\u7b97\u4e00\u6b21\u5427\u3002 \u8499\u7279\u00b7 \u5361\u7f57\u65b9\u6cd5\u6c42\u5706\u5468\u7387PI \u7f51\u4e0a\u5f88\u591a\u4f8b\u5b50\u3002\u76f4\u63a5\u4e0a\u56fe\u5427\u3002 &nbsp; \u5fae\u4fe1\u516c\u4f17\u53f7\u00a0(\u00a0Wechat\u00a0Subscription) \u6b22\u8fce\u5173\u6ce8\u00a0\u201c\u7ed3\u6784\u4e4b\u65c5\u201d\u00a0\u5fae\u4fe1\u516c\u4f17\u53f7<\/p>\n","protected":false},"author":1,"featured_media":17395,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1476,4,31,21],"tags":[3237,3238,3240,1584,3241,3236,3239],"class_list":["post-17385","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-algorithm-","category-math-geometry","category-my-software-","category-programming","tag-monte-carlo","tag-3238","tag-3240","tag-1584","tag-3241","tag-3236","tag-3239"],"aioseo_notices":[],"views":3689,"_links":{"self":[{"href":"http:\/\/www.jdcui.com\/index.php?rest_route=\/wp\/v2\/posts\/17385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.jdcui.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jdcui.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jdcui.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jdcui.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17385"}],"version-history":[{"count":0,"href":"http:\/\/www.jdcui.com\/index.php?rest_route=\/wp\/v2\/posts\/17385\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.jdcui.com\/index.php?rest_route=\/wp\/v2\/media\/17395"}],"wp:attachment":[{"href":"http:\/\/www.jdcui.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jdcui.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17385"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jdcui.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}