Showing posts with label Pi day stuff. Show all posts
Showing posts with label Pi day stuff. Show all posts

Monday, 7 March 2011

For Pi Day, Pi equals Four?

Pi Day Countdown

A while back Dave Renfro graced this blog with a guest post.  One of his former students was reading and related a "paradox" that Dave had shared in one of his classes at Central Michigan.  He wrote:
"A person starts at (0,0) and wants to travel to (1,1) but can only move in right angles. If they travel one unit over then one up, they travel 2 units. If they go .5 units over, then .5 up, then .5 over, then .5 up, they travel 2 units. If they continue to decrease the distance traveled before turning by a factor of .5, to the point where the distance traveled before turning is at about 0 (limit as d -> o and as # of turns -> infinity) then the distance traveled suddenly becomes sqrt (2). "
 

I was reminded of this a few days ago when a post at Equalis used a similar approach to "prove" that pi = 4.  This close to Pi day, I thought I would circulate it in case any classroom teachers out there needed one more topic for the day of celebrations they had planned.  Here is the image from the post... see the whole discussion here:

The anaysis answer to the why involves the rather complex idea of semi-continuity.  I will leave that back in the capable hands of Dave Renfro who sort of started al this, so here are some remarks (slightly edited) he wrote about the topic
"..consider the (0,0)-to-(1,1) diagonal of the square whose vertices are (0,0), (1,0), (0,1), and (1,1) to be the limit curve, and use a sequence of ever smaller and more numerous
horizontally and vertically oriented staircase curves that approach the diagonal. The diagonal has length
sqrt(2) and each of the staircase curves has length 2,  and hence the limit of the lengths of the staircase
curves is 2. The fact that the staircase curves are not graphs of functions is unimportant, since we can
simply rotate things so that the diagonal is along the x-axis. I believe I've read somewhere that this example
made a strong impression on Lebesgue when he was an undergraduate student (mid to late 1890s), and it likely played a small role in stimulating Lebesgue's later work in real analysis, such as the "Lebesgue integral"
(google the phrase if not familiar with its importance), among other things."

"...the limit of the lengths is greater than the length of the limit. In general, it is always true (subject to very mild restrictions on what a "curve" is) that the limit of the lengths is greater than or equal to the length of
the limit. Thus, while arc length is not a continuous function in this setting, it is "lower semicontinuous"
at each curve. To consider what continuity and semicontinuity of the "arc length function" means,
we need to have in mind a domain space of curves and a "distance between two curves" notion (or at
least, a topology on the set of curves), which I'll skip in order to focus on what semicontinuity means."

"The notions "lower semicontinuous at x=b" and "upper semicontinuous at x=b" are two halves of the notion
"continuous at x=b" in a way that is similar to how "left continuous at x=b" and "right continuous at x=b"
are two halves of the notion "continuous at x=b". The former (semicontinuity) makes use of the two
sides (below and above) on which the outputs can be located, while the latter (unilateral continuity)
makes use of the two sides (left and right) on which the inputs can be located. Even more precisely, we
could consider what it means for a function to be right lower semicontinuous at x=b, or any of the other three
combined possibilities . . .Specifically, if f(x) is defined on an open interval containing b, then f(x) is lower semicontinuous at x=b means that, for each sequence x_n approaching b such that LIMIT[f(x_n)] exists, we have f(b) less than or equal to LIMIT[f(x_n)]. Requiring, instead, that f(b) be greater than or equal to LIMIT[f(x_n)] gives the notion "upper semicontinuous at x=b". 

OK, If you still think of pi as about 3.1415.... you can find a nice screen wallpaper background for the day from John Hanna's web page.
For those who know it goes on and on, here is a pretty fact for Pi Day....

31415926535897932384626433832795028841 is a prime number.  BUT, It’s also the first 38 digits of pi. Ok, So if you stopped after some arbitrary number of digits of Pi, what is the probability that those digits will form a prime number?  ... It's prime for one digit, and for two, but not for three, four or five... go on, your turn....


From a post a few  years  ago...And on the "statpics" blog, Robert W. Jernigan, Professor of Statistics at American University, posted some notes on the First Published Random Walk. Turns out it was by John Venn in 1888, only fourteen years after the first copyrite date of "Life on the Mississippi." And the randomizing device??? The digits of Pi... Here is the image from Venn's classic "The Logic of Chance" :



Some years after I wrote this I found a twitter link to a random walk of Pi with 100 billion digits, and lots of nice graphics, enjoy.
And there is actually an official(?) Pi Day organization with a web page ...and (surprise, surprise!) they will sell you stuff.. like Pi shirts and coffee cups and clocks...  and you can get a little count-down gadget like mine..it's free.

Monday, 15 March 2010

A Guest Blog (Rant?) from Dave Renfro

I mention Dave a lot here because his regular supply of interesting journal articles from today back 200+ years has been a major source of my continuing education in the last few years... Dave sent me a copy of a recent set of remarks he had written about recent posts related to Pi day. Actually Dave calls it a "rant" but we should all keep in mind that he is NOT referring to MY pi-day post (That's right, isn't it Dave.....DAVE? Talk to me Dave?)
Anyway, here is Dave's guest post, and I greatly appreciate him letting me be the on-line voice for his ideas this time.
=====================================================================

I've mostly tried to not read anything about pi day, but in two cases I failed, with predictable results.
In the March 8-12 issue of "The Chronicle of Higher Education" there is an article about pi day titled "A Small Number With a Big Following". At one point in the article I saw the following comment:

"pi--so tiny (it's closer to three than four) yet random and infinite (as far as anyone knows)."

A question immediately occurred to me. Given the readership audience, which consists mostly of academic Ph.D.'s, why say something as meaningless and silly as this?

"random" -- What does that mean? I guess when computers calculate the digits of pi they're just randomly guessing what the digits are and then someone comes along and checks (how, nobody knows) to see if the digits are correct. Also, there are plenty of clearly non-random-looking sequences of arithmetic operations that generate pi, such as 4 - 4/3 +
4/5 - 4/7 + 4/9 - ... Unlike the CHE writer, some of us don't think the only way to represent a real number is by (integer) + a/10 + b/100 + c/1000 + ...

"infinite" -- If they mean the decimal expansion is infinite, then so too is the expansion of 1/3, the expansion of 1/7, etc. Maybe they mean that pi can't be described in a computable way, like Chaitin's constant "omega", except everyone knows pi is computable in very simple ways (as far as computability theory measures of complexity go), or do they?
Perhaps not everyone can type "pi" into Google and skim the pi Wikipedia page (the top hit when I tried this).

I think I know what they wanted to say, which was that no one knows whether, for each n, all possible n-digit strings appear in the decimal expansion with the same limiting frequency, although all computer explorations into the digits of pi seem to suggest this. Of course, they might want to express it a little less mathematical than this, but still
get the point across. As for saying "infinite", that's silly and a waste of words. Besides, it's automatic if you say something along the lines of what I just said, not to mention that everyone learns in 10th grade geometry (probably in 7th or 8th grade math books by now) that pi is irrational. Personally, I think knowing pi is irrational and what that means regarding decimal expansions is at least equivalent to knowing some of the literary references and schools of thought that get mentioned in their other articles without batting an eye. But you see, it's O-K in educated circles to say "economic determinism", but you don't ever want to say "irrational number".
The other article I saw showed up on March 12 at the CNN internet news
page:
http://www.cnn.com/2010/TECH/03/12/pi.day.math/index.html
The article is titled "On Pi Day, one number 'reeks of mystery'", and surprisingly it seems to be pitched at a higher mathematical level (probably 8th or 9th grade) than the Chronicle of Higher Education article (about 6th or 7th grade). Here is an excerpt from the CNN article:

***********************************

Mathematicians know that pi is irrational -- it cannot be represented as one number divided by another -- and transcendental, meaning it is not algebraic. That means, theoretically, that its digits will continue on indefinitely without ending in repetition -- in other words, the digits won't suddenly continue infinitely as 5s after 3 trillion digits (Pi's digits were calculated out to a record 2.7 trillion places in December
by French computer scientist Fabrice Bellard).

That also means, mathematicians theorize, that any string of numbers you can imagine is somewhere in pi -- for instance, look for your birthday. Coincidentally, "360," the number of degrees in a circle, occurs at digits 358 to 360. (Pat here..how cool, I did not know that... I know that it's a coincidence, but I love it)


***********************************

Right off the bat, in the first sentence, we have something any good middle school student would question -- isn't pi equal to pi divided by 1, and hence pi can be represented as "one number divided by another"? O-K, so the editor was asleep on that part. Let's continue. What's with this "theoretically" part? The digits of any irrational number (it's
worded as if you need to know that pi is both irrational and transcendental to conclude this, which is also an editorial oversight)continue indefinitely without being periodic, period. Then, in the next paragraph, we have another editorial flop. It's written as if the fact that pi is an irrational number (and maybe also the fact that pi is a transcendental number, an ambiguity we're left to figure out on our own)might mean that pi contains every finite string of digits, which of course isn't true -- plenty of irrational (and even transcendental)numbers have this property and plenty don't. Mathematicians theorize that pi might have this property, and even the much stronger limiting frequency property of these digit strings that I mentioned earlier, but to say that mathematicians theorize this on the basis of pi being irrational is extremely misleading. I think the author just wanted to write "This also means" because it sounded like a good transitional phrase, without worrying about what the phrase actually meant, and apparently the editor didn't worry about what it actually meant either.

And finally, what's up with saying "transcendental" means "not algebraic"? Does the author really think anyone who doesn't know what a transcendental number is will be helped by saying this is a number that isn't algebraic? I found this especially puzzling in view of the fact that in practically every single news article I've ever come across in which the term "light year" is used, the author seems compelled to state that a light year is the distance that light travels in 1 year (and then the author usually gives the equivalent in miles), and yet here "algebraic number" is thrown in without comment. I'd be willing to bet almost anything that far more people know what a light year is than what an algebraic number is. If I were editing the article I would have suggested saying something like
"although mathematicians have known that pi is irrational since the late 1700s, and transcendental--a certain extreme way that a number can be irrational--since the late 1800s, to this day no one knows . . ."There's no need in an article like this to define transcendental, but one should probably use the word since it's so well connected with pi
that it would seem strange to knowledgeable readers to not use the word.
If all this careful language analysis sounds unfair, ask yourself if being this sloppy with language usage would be accepted in an article about a bank robber (oops, I mean an alleged bank robber) or in an article about world affairs. No, it wouldn't. But it's O-K in math for some reason, and why this is allowed without much criticism is rather curious for a society that is so science-math-technology based.
========================================
I hope I got all that right, and if not, it was almost certainly my cutting and pasting that created the problem. Thanks Dave, for bringing a little class to my blog... (hey, since I wrote part of this, does this qualify as co-publishing??? I'm ready to stretch the rules where needed...)

And Dave, If you ever have something else to share with my (somewhat limited) audience, I would love to host you again.

Sunday, 14 March 2010

But WHY?


The image is a pumpkin carved a few Halloweens ago by Sonja L. One of my Stats/Calc students (and a really good Bassoonist, Bassooner, Bassoon-enough)

Given the day, you may figure out this one...but the question above is the real issue. This was in an article from L. Short and J.P. Melville of the Napier University in Edinburgh, Scotland (which is, at least partly, on Napier's old estate)...

Take a unit square. Now step by step, create a unit rectangle on its right side (this is another square), then create a unit rectangle (2 x 1/2) on the top. Now go back and create a unit rectangle on the right side again (this one will be 2/3 by 3/2) then back to create on on the top.. Continue this forever and the sequence of ratios of the length to height of the total rectangle formed will converge to a Limit... find it...



and then explain WHY that is the limit... (blatant confession... I have no idea why this happens geometrically, and don't know anyone who does...)

Some more stuff from an older post on Pi I wrote a while back,,, after all, today is the day for it....
---------------------------
I know there are lots of infinite products that are equal to pi, and always thought
Wallis' expansion for pi/2 was beautiful,



And of course it is not as pretty, at least not to me, but since it was the first infinite product in math, I feel compelled to mention that Viete gave one for the reciprocal, 2/pi:

The question about this one for the really clever student is what does it have to do with the old calculus limit of Sin(theta)/theta... or the half angle formulas?

And Leibniz (you remember, the guy who invented Calculus if you DON'T live in England, just Kidding folks, it was Newton all the way, good job Ike) wrote one that Clifford Pickover calls "eye candy for pi";
pi/4 = 1 - 1/3 + 1/5 - 1/7+ 1/9....

except, it takes forever to converge.... the sum of the first 250 terms is not accurate to the second decimal place...

Ok, but the point of all this........

But today I came across one I had never seen, from the master of us all, Euler. Euler, it seems wrote pi/2 as an infinite product of fractions in which the numerators were all prime and the denominators were all even numbers excluding multiples of four. What appears from what I see is that each denominator is one more or less than the prime in the numerator, but always avoiding the one which would be a multiple of four... (Ok, now how do you write that as in product notation??).

pi/2 = 3/2 ( 5/6)(7/6)(11/10) (13/14)(17/18)

I looked for this a little and could not come up with a reference. If anyone knows where Euler wrote this, please advise.

Franz Gnaedinger who wrote the post where I picked this up, also pointed out that
"The analogous infinite product using all odd numbers
in the numerator seems to approximate the natural
logarithm of 2:

ln2 = 1/2 x 3/2 x 5/6 x 7/6 x 9/10 x 11/10 ..."
--------------------
And there may be a clue in all this for the sequence that started all this off at the top...