tag:blogger.com,1999:blog-1693014329567144872.post6729747559707548262..comments2023-08-27T06:49:20.658+01:00Comments on The Glowing Python: Monte Carlo estimate for pi with numpyJustGlowinghttp://www.blogger.com/profile/17212021288715206641noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-1693014329567144872.post-38696058950889406782013-07-26T20:55:42.586+01:002013-07-26T20:55:42.586+01:00facinating, I am really impressed. facinating, I am really impressed. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1693014329567144872.post-85401056114111383172012-11-12T10:35:35.232+00:002012-11-12T10:35:35.232+00:00I really like it : ) I didn't write much code ...I really like it : ) I didn't write much code till now and I tried this pi-approximation - now that I saw this nice and short way, I am very jealous : PAnonymoushttps://www.blogger.com/profile/17513281344810768729noreply@blogger.comtag:blogger.com,1999:blog-1693014329567144872.post-55189622359109623982012-05-20T16:06:11.192+01:002012-05-20T16:06:11.192+01:00This comment has been removed by a blog administrator.jackhttps://www.blogger.com/profile/06122681827186864956noreply@blogger.comtag:blogger.com,1999:blog-1693014329567144872.post-84390189681641705372012-03-19T10:57:26.949+00:002012-03-19T10:57:26.949+00:00I have not done the calculation of error, but ther...I have not done the calculation of error, but there's a likelyhood that you introduce noise using sqrt in idx = sqrt(p[:,0]**2+p[:,1]**2) < 1. And you don't need to. You can compare the square of the distance against 1 and you're still good.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1693014329567144872.post-4600171923138946442012-01-24T08:25:23.581+00:002012-01-24T08:25:23.581+00:00Hey, you hate experiments! don't you? :)Hey, you hate experiments! don't you? :)JustGlowinghttps://www.blogger.com/profile/17212021288715206641noreply@blogger.comtag:blogger.com,1999:blog-1693014329567144872.post-72901419006163797512012-01-24T08:21:36.643+00:002012-01-24T08:21:36.643+00:00Or you could use the math library in Python and di...Or you could use the math library in Python and display the value of math.pi<br />Its a tad bit easier.Anonymousnoreply@blogger.com