The most basic explanation of Pi is that it is the ratio of the circumference to the diameter for a circle. That seems simple enough, but it turns out that Pi is an irrational number – so you can’t just write it down. Oh, I know that you are an uber-geek and you could recite the first 80 digits of Pi. But the question is – how many digits are enough?

In this post, I am going to assume that we don’t know the true value of Pi (which is essentially true). I can then use propagation of error techniques to see how dependent different calculations are on the value of Pi.

### Super Brief Intro to Uncertainty

I still can’t believe I haven’t put a post together on the basics of measurement and uncertainty. Add that to the todo list. The most important idea in measurements is that they are not exact values. Let me start with my favorite example. Suppose I have a table that I want to know the area of. To do this, I measure the length and the width. The value I come up with for the length is 133.2 cm. But what does this mean? Is this the exact length of the table? No. Two problems.

- The table doesn’t have an exact length. What does the length mean for a table? Is it a perfect rectangle? No. Is it even straight on the edges – probably not.
- Even if it were a perfect table, would my measurement be perfect? No.

Maybe I measured this length a whole bunch of times and at different locations. This would give me an estimate of how the measurements are spread out. If I do the same for the width, I might get something like:

This means that the length of the table is almost certainly between 133.0 cm and 133.4 cm. If a similar thing can be said about the width, then this diagram could represent the area.

The point I would like to make – since the width and the length have uncertainty, the calculated area would have uncertainty. How do you determine this calculated uncertainty? I have three ways:

- Use the extreme values of length and width to calculate the extreme values of the area (in this case the smallest area uses the smallest length and width). This is the method I use for my algebra-based physics labs.
- Assume the error is small, linear, and normally distributed. In this case, you can use the partial derivatives of the functions to determine the relationship of the uncertainty for the measured stuff on the calculated stuff. Here is wikipedia’s page on this, but I am not really going to go into the details.
- Assume that if you measure the stuff a whole bunch of times, the data would be normally distributed. Write a program that generates normal data and use that to calculate tons of times the calculated value. Look at the spread of all these calculations to determine the uncertainty. I am not going to do this right now.

### Back to Pi

Archimedes used 96 sided polygons to estimate the value of Pi. He showed that Pi was greater than 3 and 10/71 and less than 3 and 1/7^{th}. This gives a decimal value from 3.14084507 to 3.142857143 (with no rounding). I could write this as an average and an uncertainty of about:

That is not too bad of a value. But what about pi = 3? Is that bad? First – according to Snopes, no state has ever proposed a law that would officially change Pi to 3. It is still a fun story. Anyway, in this case I could perhaps say:

I chose the uncertainty in this fictional Pi to be +/- 0.2 so that the range would cover the true value of Pi. Really, though you could in general write Pi as:

Where Delta pi is the uncertainty in pi.

### Some uses of Pi

So what effect does the uncertainty in Pi have on different uses of Pi? Let me start with something practical – the speedometer in your car. Basically, your speedometer needs Pi to make the conversion between angular velocity and linear velocity using:

I know, there is no pi in that equation. But, how do you know the angular velocity (omega)? If this is measured in revolutions per second (or minute) then you have to convert units. Let me write this as:

Now, I will assume that omega, r, and pi all have uncertainty. Then the uncertainty in the velocity would be (using the max-min method from above for simplicity):

And I would do a similar thing for the minimum value. I could average the difference between average and the max and the average and the min. (I will put these calculations in a spreadsheet for you).

What about the volume of a sphere? This same thing is used for calculating things such as – the volume of the sun or the volume of a spherical cow. Here is the volume of a sphere:

These two uses of Pi seem boring – but really this is the basis for many applications of pi. There are tons of others, but they are maybe more abstract (but just as important). Now, on the to the spreadsheet. I will put in some values for the stuff, but you can change them if you like.

Note – I don’t know how to change the number of digits presented in google docs. Also, I seem to have hit a creative wall with uses of pi. How about you list your favorite use of Pi in the comments?