pi

\STATE [algorithmic package]

June 7, 2012 | xi'an

I fought with my LαTεX compiler this morning as it did not want to deal with my code: looking on forums for incompatibilities between beamer and algorithmic, and adding all kinds of packages, to no avail. Until I realised one \STATE was missing: (This is connected with my ... [Read more...]

π Day Special! Estimating π using Monte Carlo

March 14, 2012 | Corey Chivers

In honour of π day (03.14 – can’t wait until 2015~) , I thought I’d share this little script I wrote a while back for an introductory lesson I gave on using Monte Carlo methods for integration. The concept is simple – we can estimate the area of an object which is inside another ... [Read more...]

No simulation is complete without a gif

March 24, 2011 | Adam.Hyland

I promise this is my last post on the now week and a half old π pay! Building on the last post, I figured I could show how convergence actually works in the estimation algorithm. If you’ll recall, we plotted … Continue reading → [Read more...]

More pi plus 1 (or plus 0.01) day fun

March 15, 2011 | Adam.Hyland

Since I just didn’t get enough this morning, I spent some more time fooling around with estimating pi. Since I was basically counting the number of random x,y pairs inside a quarter circle and computing a sample average for more … Continue reading → [Read more...]

I’m late for π day

March 15, 2011 | Adam.Hyland

It is officially no longer pi day, but I didn’t see this Drew Conway post about estimating pi until just a few minutes ago. Because Google Reader doesn’t show github embeds, I also got to try it without seeing Drew’s … Continue reading → [Read more...]

Example 8.2: Digits of Pi, redux

July 12, 2010 | Ken Kleinman

In example 8.1, we considered some simple tests for the randomness of the digits of Pi. Here we develop a different test and implement it. If each digit appears in each place with equal and independent probability, then the places between recurrences...
[Read more...]

Example 8.1: Digits of Pi

July 6, 2010 | Ken Kleinman

Do the digits of Pi appear in a random order? If so, the trillions of digits of Pi calculated can serve as a useful random number generator. This post was inspired by this entry on Matt Asher's blog. Generating pseudo-random numbers is a key piece o...
[Read more...]

Betting on Pi

May 31, 2010 | Matt Asher

I was reading over at math-blog.com about a concept called numeri ritardatari. This sounds a lot like “retarded numbers” in Italian, but apparently “retarded” here is used in the sense of “late” or “behind” and not in the short bus sense. I barely scanned the page, but I think ... [Read more...]

\pi day!

March 14, 2010 | M. Parzakonis

It’s π-day today so we gonna have a little fun today with Buffon’s needle and of course R. A well known approximation to the value of $latex \pi$ is the experiment tha Buffon performed using a needle of length,$latex l$. What I do in the next is ... [Read more...]

Variations in the literal representation of Pi

March 11, 2010 | Derek-Jones

The numbers system I am developing attempts to match numeric literals contained in a file against a database of interesting numbers. One of the things I did to quickly build a reasonably sized database of reliable values was to extract numeric literals from a few well known programs that I ...
[Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)