From: Ted Harding <ted.harding_at_wlandres.net>

Date: Mon, 30 May 2011 09:52:16 +0100 (BST)

*>
*

> Apparently the Fortran language has a DATA statement just for this

*> purpose. This is allegedly a quote from an early Fortran manual:
*

*>
*

*> The primary purpose of the DATA statement is to give names to
*

*> constants; instead of referring to pi as 3.141592653589793 at
*

*> every appearance, the variable PI can be given that value with
*

*> a DATA statement and used instead of the longer form of the
*

*> constant. This also simplifies modifying the program, should
*

*> the value of pi change.
*

*>
*

*> Peter
*

E-Mail: (Ted Harding) <ted.harding_at_wlandres.net> Fax-to-email: +44 (0)870 094 0861

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 30 May 2011 - 08:54:00 GMT

Date: Mon, 30 May 2011 09:52:16 +0100 (BST)

On 30-May-11 07:06:57, Peter Langfelder wrote:

> On Sun, May 29, 2011 at 11:53 PM, <Bill.Venables@csiro.au> wrote:

>> There is an urban legend that says Indiana passed a law implying >> pi = 3. >> >> (Because it says so in the bible...)

> Apparently the Fortran language has a DATA statement just for this

My take on this discussion:

Take a nice-looking pie, say 113355, slice it, and put one half on top of the other. Call it "pi":

pi = 355/113

Compared with "pi = 22/7", which is not even pretty, it is also a much closer approximation to the mathematical ideal:

To 20 decimal places (using 'bc' here)

"true pi"

= 3.14159265358979323844

355/113

= 3.14159292035398230088

22/7

= 3.14285714285714285714

so 355/113 is good to the 6th decimal place (3.141593), while 22/7 breaks down at the 3rd (3.143 instead of 3.142).

In the back of my head is a memory of a passage I read some 50 years ago. I write a paraphrase, since I don't recall the exact words:

"For an engineer, assuming that pi = 3.142 will probably enable him to build a very satisfactory bridge. Assuming that pi = 3.14159265358979323844 will give the circumference of the Earth's orbit to one millionth of a millimetre. For a pure mathematician, however, either assumption leads to the conclusion that 1 = 0. It is necessary to preserve common sense in the application of mathematical deduction."

I suspect (from my context at the time) that it may well have been by J.L. Synge (beautiful writer on theoretical physics, especially Relativity Theory) in one of his several writings on Ballistics.

However, the one possibly relevant printed item which I still have from those days:

K.L. Nielsen and J.L. Synge,

"On the motion of a spinning shell"

Quarterly of Applied Mathematics, 4(3), Oct 1946,201-226.

discusses a very similar issue, but puts it quite differently. If my "quotation" above reminds anyone of the original, I would be very grateful to learn of the reference to the source!

With thanks, and Many Happy Approximations to you all! Ted.

E-Mail: (Ted Harding) <ted.harding_at_wlandres.net> Fax-to-email: +44 (0)870 094 0861

Date: 30-May-11 Time: 09:52:09 ------------------------------ XFMail ------------------------------ ______________________________________________R-help_at_r-project.org mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 30 May 2011 - 08:54:00 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Australia.

Archive generated by hypermail 2.2.0, at Mon 30 May 2011 - 11:20:10 GMT.

*
Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help.
Please read the posting
guide before posting to the list.
*