Posts Tagged ‘pi’

Pi Day

4 Comments

We at CatSynth once again join others in recognizing Pi Day today.  This time, Google is joining in as well with one of the special “Google Doodles” on their front page:

The image very nicely captures many of the well-known geometric and trigonometric properties of π in an abstract representation of the Google logo.

Of course, I tend to me be more curious about some of the more esoteric properties that interrelate to other parts of mathematics.  For example, consider  seemingly unrelated Gaussian Integral.

This is the area underneath the Gaussian function which is usually associated with normal distributions probability and statistics. The interrelation of π and e, which we have presented in previous years, is at play again here.

The approximation of the square root of π is 1.77245385…, and like π itself, is a transcendental number. In addition to its appearance in the Gaussian Integral and the Gamma Function (which we also presented on a past Pi Day), it plays an important part of the ancient mathematical problem of Squaring the Circle, that is constructing a square with the same area as a circle using only a compass and a straight edge. Because the square root of π is transcendental, it suggests that Squaring the Circle is in fact impossible. But that probably won’t stop some people from continuing to try.

Tags: , , ,

Pi Day 3.14159…

5 Comments

[For Weekend Cat Blogging, please scroll down or click here.]

We at CatSynth once again, celebrate Pi Day on its three-digit approximation, March 14 (3-14).

We start with some interesting facts about the digits of pi. We presented statistics about the distribution in our 2007 Pi Day post. From super-computing.org, we present some interesting patterns:

01234567890 first occurs at the 53,217,681,704-th digit of pi.
09876543210 first occurs at the 42,321,758,803-th digit of pi.
777777777777 first occurs at the 368,299,898,266-th digit of pi.
666666666666 first occurs at the 1,221,587,715,177-th digit of pi.
271828182845 first occurs at the 1,016,065,419,627-th of digit pi. (that’s e for those who haven’t memorized it)
314159265358 first occurs at the 1,142,905,318,634-th digit of pi.

Last year, we showed the relationship to the Gamma function, and of course to Euler’s identity, which links pi surprisingly closely to the imaginary constant i and the number e. But it is also surprisingly easy to generate pi from simple sequences of integers. Consider the Madhava-Leibniz formula for pi:

Thus one can generate pi from odd integers and simple arithmetic. Another formula only involving perfect squares of integers comes from the Basel problem (named for the town of Basel in Switzerland):

In recognition of Pi Day, the U.S. House of Representatives passed a resolution this week:

And thus the sad history of pi in politics as exemplified by the Indiana Pi Bill of 1897 is put to rest. Now onto erasing the sad history of science and politics in general of the past eight years…

Tags: , , , , , , , ,

Prime-counting function revisited

1 Comment

A couple of weeks ago we posted an article on “Calculus for Cats” and the Prime Number Theorem, which featured the, the prime-counting function π(x):

Basically, this function counts the number of primes less than or equal to a particular number. For example π(20) would be all the prime numbers less than 20: 2, 3, 5, 7, 11, 13, 17 and 19. So π(20) = 8.

So to calculate π(1000) would one have to literally count all the prime numbers less than 1000, including figuring out which numbers are prime? And what about π(1000000)? Unfortunately, the answer is yes.

Unfortunately, the answer is no, as Victor points out in the comments. Or more specifically, Victor's cat Blue Chip says “Neow!” I think is the point where one is supposed to say “my bad.” Victor is in fact V. S. Miller who co-authored the paper “Computing pi(x): The Meissel-Lehmer Method”.

The oldest method for computing π(x) is to use the sieve of Eratosthenes, which is literally counting all the primes below x. More efficient methods have existed for quite a while, notably astronomer E. D. F. Meissel found a method in the 1870s that he used to compute π(100,000,000) as 5,761,455; and π(1,000,000,000), though his result was found to be slightly off (too small by 56). It should be noted that Meissel carried out his calculations without the aid of a digital computer. D.H. Lemher extended and simplified Meissel's method in the context of modern computers, and calculated π(1010).

Miller and his co-authors present new algorithms that refine the Meissel-Lehmer method, including new sieving techniques and optimizations for parallel computing. Those interested in the technique are encouraged to read the paper. The “Extended Meiseel-Lehmer” technique is used to compute π(1016) as 279,238,341,033,925.

They also include an interesting chart comparing large values of π(x) and Li (x), the offset logarithmic integral that we presented in our article. Recall that Li(x) is an upper bound on the value of π(x). And for 1016, the difference between Li(x) and π(x) is 3,214,632. Only off by three million, which isn't too bad…

This post was included in Carnival of Mathematics #33 at Walking Randomly.

Tags: , , ,

Fun with Pi (Day)

4 Comments

We saw this picture on meeyauw, and thought it was a good way to open our own Pi Day offering. Pi Day, or π day is celebrated on March 14 (3/14) of every year.

π does turn up in some interesting places besides circles and standard trigonometry (and LOLcat photos). There is of course Euler's famous identity:

which unites π with four of the other most famous constants in mathematics: zero, 1, i (the imaginary root of -1) and e. But it also turns up in some more surprising places. Consider the well-known factorial function, where n! or “n factorial” is the product of all the integers between 1 and n. For example:

5! = 5×4×3×2×1 = 120.

Simple enough. But of course some troublemaker is eventually going to ask for the factorial of 1/2. Not so easy. Fortunately, there is a function, called the Gamma function, that provides a solution:

Not really as simple as the original integer-only factorial. Once calculus is involved, might as well forget about it. But if you go through the trouble of plugging in 1/2 to the formula, you get the following intriguing result:

or

So the factorial of one half is one half the square root of π. Who knew?

Tags: , , , ,

Fun with stats: digits in Pi

1 Comment

From Eve Andersson's Pi land, we have these histograms of the frequency of (base 10) digits.

The first 100 digits of pi:

0 8
1 8
2 12
3 12
4 10
5 8
6 9
7 8
8 12
9 13

Things even out pretty nicely by about 1 million digits:

0 99959
1 99757
2 100026
3 100230
4 100230
5 100359
6 99548
7 99800
8 99985
9 100106

The digits are just white noise, there might be an interesting pattern now and then, but that is to be expected statistically. Besides, these are base 10 digits, which are an arbitrary representation based on the fact that we have two hands with five fingers apiece…

I could share some more interesting facts and formulae, but printing the greek character pi on a blog is, as they say, a pain in the butt. And I am not in the mood for that tonight.



Tags: , ,