Re: [R] Value of 'pi'

2011-06-04 Thread Ted Harding
I asked a radiographer friend of mine to examine this
suggestion, but he said it wouldn't scan.

Ted.
 
On 04-Jun-11 04:04:43, John wrote:
> Last line, try
> 
> "but one can't, for Pi is transcendental."
> 
> 
> On Friday, June 03, 2011 04:12:07 AM Jim Lemon wrote:
>> On 06/01/2011 10:14 AM, baptiste auguie wrote:
>> > I propose a Pi Haiku (PIQ),
>> > 
>> > Pi is of certain value,
>> > In statistics, invaluable, yet
>> > Transcending numerics.
>> 
>> How about a pi limerick?
>> 
>> Pi, the great circumferential,
>> nearly sent the geometers mental.
>> For they tried to extract
>> a solution exact
>> but one can't, for the thing's transcendental.
>> 
>> Jim
> 
> __
> R-help@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.


E-Mail: (Ted Harding) 
Fax-to-email: +44 (0)870 094 0861
Date: 04-Jun-11   Time: 11:38:09
-- XFMail --

__
R-help@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.


Re: [R] Value of 'pi'

2011-06-03 Thread John
Last line, try

"but one can't, for Pi is transcendental."



On Friday, June 03, 2011 04:12:07 AM Jim Lemon wrote:
> On 06/01/2011 10:14 AM, baptiste auguie wrote:
> > I propose a Pi Haiku (PIQ),
> > 
> > Pi is of certain value,
> > In statistics, invaluable, yet
> > Transcending numerics.
> 
> How about a pi limerick?
> 
> Pi, the great circumferential,
> nearly sent the geometers mental.
> For they tried to extract
> a solution exact
> but one can't, for the thing's transcendental.
> 
> Jim

__
R-help@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.


Re: [R] Value of 'pi'

2011-06-03 Thread Jim Lemon

On 06/01/2011 10:14 AM, baptiste auguie wrote:

I propose a Pi Haiku (PIQ),

Pi is of certain value,
In statistics, invaluable, yet
Transcending numerics.


How about a pi limerick?

Pi, the great circumferential,
nearly sent the geometers mental.
For they tried to extract
a solution exact
but one can't, for the thing's transcendental.

Jim

__
R-help@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.


Re: [R] Value of 'pi'

2011-05-31 Thread baptiste auguie
I propose a Pi Haiku (PIQ),

Pi is of certain value,
In statistics, invaluable, yet
Transcending numerics.

Best,

baptiste

On 1 June 2011 11:55, Ravi Varadhan  wrote:
> Nice to know that the `pi' can be sliced in so many different ways!
>
> There are exactly 3.154 x e08 seconds in a (non-leap) year.  So the error in 
> your approximation is less than 0.4%.
>
> Ravi.
> 
> From: Thomas Lumley [tlum...@uw.edu]
> Sent: Tuesday, May 31, 2011 4:41 PM
> To: Ravi Varadhan
> Cc: Bentley Coffey; Vincy Pyne; r-help@r-project.org
> Subject: Re: [R] Value of 'pi'
>
> On Wed, Jun 1, 2011 at 2:12 AM, Ravi Varadhan  wrote:
>>
>> I have also heard (courtesy: John Nash) that `pi' is the ratio of actual 
>> time it takes to complete your thesis to the anticipated time.
>
>
> And I find it a useful mnemonic that there are pi times ten million
> seconds in a year (accurate to better than half a percent).
>
>     -thomas
>
> --
> Thomas Lumley
> Professor of Biostatistics
> University of Auckland
>
> __
> R-help@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.
>

__
R-help@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.


Re: [R] Value of 'pi'

2011-05-31 Thread Ravi Varadhan
Nice to know that the `pi' can be sliced in so many different ways!  

There are exactly 3.154 x e08 seconds in a (non-leap) year.  So the error in 
your approximation is less than 0.4%.

Ravi.

From: Thomas Lumley [tlum...@uw.edu]
Sent: Tuesday, May 31, 2011 4:41 PM
To: Ravi Varadhan
Cc: Bentley Coffey; Vincy Pyne; r-help@r-project.org
Subject: Re: [R] Value of 'pi'

On Wed, Jun 1, 2011 at 2:12 AM, Ravi Varadhan  wrote:
>
> I have also heard (courtesy: John Nash) that `pi' is the ratio of actual time 
> it takes to complete your thesis to the anticipated time.


And I find it a useful mnemonic that there are pi times ten million
seconds in a year (accurate to better than half a percent).

 -thomas

--
Thomas Lumley
Professor of Biostatistics
University of Auckland

__
R-help@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.


Re: [R] Value of 'pi'

2011-05-31 Thread Thomas Lumley
On Wed, Jun 1, 2011 at 2:12 AM, Ravi Varadhan  wrote:
>
> I have also heard (courtesy: John Nash) that `pi' is the ratio of actual time 
> it takes to complete your thesis to the anticipated time.


And I find it a useful mnemonic that there are pi times ten million
seconds in a year (accurate to better than half a percent).

 -thomas

-- 
Thomas Lumley
Professor of Biostatistics
University of Auckland

__
R-help@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.


Re: [R] Value of 'pi'

2011-05-31 Thread Ravi Varadhan
It is the same thing (simply multiply the polynomial by the LCM and you have a 
polynomial with integer coefficients).

---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins 
University

Ph. (410) 502-2619
email: rvarad...@jhmi.edu<mailto:rvarad...@jhmi.edu>

From: jlu...@ria.buffalo.edu [mailto:jlu...@ria.buffalo.edu]
Sent: Tuesday, May 31, 2011 11:06 AM
To: Ravi Varadhan
Cc: 'Bentley Coffey'; r-help@r-project.org; r-help-boun...@r-project.org; Vincy 
Pyne
Subject: Re: [R] Value of 'pi'


A transcendental number is not the zero of any polynomial with , not 
just integer, coefficients
.


Ravi Varadhan 
Sent by: r-help-boun...@r-project.org

05/31/2011 10:12 AM

To

"'Bentley Coffey'" , Vincy Pyne 

cc

"r-help@r-project.org" 

Subject

Re: [R] Value of 'pi'







`pi' is more than irrational - it is transcendental, which mean it cannot be 
the zero of a polynomial with integer coefficient.  All transcendentals are 
irrationals, but not vice-versa.

I have also heard (courtesy: John Nash) that `pi' is the ratio of actual time 
it takes to complete your thesis to the anticipated time.

I have also heard that March 14 is the official `pi' day in the US (probably 
not in Indiana!).

Ravi.

---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins 
University

Ph. (410) 502-2619
email: rvarad...@jhmi.edu


-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On 
Behalf Of Bentley Coffey
Sent: Monday, May 30, 2011 9:01 PM
To: Vincy Pyne
Cc: r-help@r-project.org
Subject: Re: [R] Value of 'pi'

Pi is an irRATIOnal number, meaning that it is not equal to the ratio of any
integers ("whole numbers"). Hence, 22/7 is ONLY an approximation. The
built-in value for pi in R is also just an approximation (pi has no terminal
digit on the right of the decimal point so any finite number of digits will
just be an approximation). Yet, the built-in value for pi in R is a more
precise approximation, which is usually preferred...
On May 30, 2011 2:02 AM, "Vincy Pyne"  wrote:
> Dear R helpers,
>
> I have one basic doubt about the value of pi. In school, we have learned
that
>
> pi = 22/7 (which is = 3.142857). However, if I type pi in R, I get pi =
3.141593. So which value of pi should be considered?
>
> Regards
>
> Vincy
>
>
>
>
>
> [[alternative HTML version deleted]]
>
> __
> R-help@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.

[[alternative HTML version deleted]]

__
R-help@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.

__
R-help@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.

[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] Value of 'pi'

2011-05-31 Thread JLucke
A transcendental number is not the zero of any polynomial with , 
not just integer, coefficients
.




Ravi Varadhan  
Sent by: r-help-boun...@r-project.org
05/31/2011 10:12 AM

To
"'Bentley Coffey'" , Vincy Pyne 

cc
"r-help@r-project.org" 
Subject
Re: [R] Value of 'pi'






`pi' is more than irrational - it is transcendental, which mean it cannot 
be the zero of a polynomial with integer coefficient.  All transcendentals 
are irrationals, but not vice-versa.

I have also heard (courtesy: John Nash) that `pi' is the ratio of actual 
time it takes to complete your thesis to the anticipated time.

I have also heard that March 14 is the official `pi' day in the US 
(probably not in Indiana!). 

Ravi.

---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns 
Hopkins University

Ph. (410) 502-2619
email: rvarad...@jhmi.edu


-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] 
On Behalf Of Bentley Coffey
Sent: Monday, May 30, 2011 9:01 PM
To: Vincy Pyne
Cc: r-help@r-project.org
Subject: Re: [R] Value of 'pi'

Pi is an irRATIOnal number, meaning that it is not equal to the ratio of 
any
integers ("whole numbers"). Hence, 22/7 is ONLY an approximation. The
built-in value for pi in R is also just an approximation (pi has no 
terminal
digit on the right of the decimal point so any finite number of digits 
will
just be an approximation). Yet, the built-in value for pi in R is a more
precise approximation, which is usually preferred...
On May 30, 2011 2:02 AM, "Vincy Pyne"  wrote:
> Dear R helpers,
>
> I have one basic doubt about the value of pi. In school, we have learned
that
>
> pi = 22/7 (which is = 3.142857). However, if I type pi in R, I get pi =
3.141593. So which value of pi should be considered?
>
> Regards
>
> Vincy
>
>
>
>
>
> [[alternative HTML version deleted]]
>
> __
> R-help@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.

 [[alternative HTML version deleted]]

__
R-help@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.

__
R-help@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.


[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] Value of 'pi'

2011-05-31 Thread Bert Gunter

and proof of irrationality is not hard (Wikipedia has several),
although certainly nontrivial. Proof that it's transcendental is,
requiring e.g. abstract algebra (Lindemann-Weierstrass theorem).

Cheers,
Bert

On Tue, May 31, 2011 at 7:12 AM, Ravi Varadhan  wrote:
> `pi' is more than irrational - it is transcendental, which mean it cannot be 
> the zero of a polynomial with integer coefficient.  All transcendentals are 
> irrationals, but not vice-versa.
>
> I have also heard (courtesy: John Nash) that `pi' is the ratio of actual time 
> it takes to complete your thesis to the anticipated time.
>
> I have also heard that March 14 is the official `pi' day in the US (probably 
> not in Indiana!).
>
> Ravi.
>
> ---
> Ravi Varadhan, Ph.D.
> Assistant Professor,
> Division of Geriatric Medicine and Gerontology School of Medicine Johns 
> Hopkins University
>
> Ph. (410) 502-2619
> email: rvarad...@jhmi.edu
>
>
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On 
> Behalf Of Bentley Coffey
> Sent: Monday, May 30, 2011 9:01 PM
> To: Vincy Pyne
> Cc: r-help@r-project.org
> Subject: Re: [R] Value of 'pi'
>
> Pi is an irRATIOnal number, meaning that it is not equal to the ratio of any
> integers ("whole numbers"). Hence, 22/7 is ONLY an approximation. The
> built-in value for pi in R is also just an approximation (pi has no terminal
> digit on the right of the decimal point so any finite number of digits will
> just be an approximation). Yet, the built-in value for pi in R is a more
> precise approximation, which is usually preferred...
> On May 30, 2011 2:02 AM, "Vincy Pyne"  wrote:
>> Dear R helpers,
>>
>> I have one basic doubt about the value of pi. In school, we have learned
> that
>>
>> pi = 22/7 (which is = 3.142857). However, if I type pi in R, I get pi =
> 3.141593. So which value of pi should be considered?
>>
>> Regards
>>
>> Vincy
>>
>>
>>
>>
>>
>> [[alternative HTML version deleted]]
>>
>> __
>> R-help@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.
>
>        [[alternative HTML version deleted]]
>
> __
> R-help@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.
>
> __
> R-help@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.
>



-- 
"Men by nature long to get on to the ultimate truths, and will often
be impatient with elementary studies or fight shy of them. If it were
possible to reach the ultimate truths without the elementary studies
usually prefixed to them, these would not be preparatory studies but
superfluous diversions."

-- Maimonides (1135-1204)

Bert Gunter
Genentech Nonclinical Biostatistics
467-7374
http://devo.gene.com/groups/devo/depts/ncb/home.shtml

__
R-help@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.


Re: [R] Value of 'pi'

2011-05-31 Thread Ravi Varadhan
`pi' is more than irrational - it is transcendental, which mean it cannot be 
the zero of a polynomial with integer coefficient.  All transcendentals are 
irrationals, but not vice-versa.

I have also heard (courtesy: John Nash) that `pi' is the ratio of actual time 
it takes to complete your thesis to the anticipated time.

I have also heard that March 14 is the official `pi' day in the US (probably 
not in Indiana!). 

Ravi.

---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins 
University

Ph. (410) 502-2619
email: rvarad...@jhmi.edu


-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On 
Behalf Of Bentley Coffey
Sent: Monday, May 30, 2011 9:01 PM
To: Vincy Pyne
Cc: r-help@r-project.org
Subject: Re: [R] Value of 'pi'

Pi is an irRATIOnal number, meaning that it is not equal to the ratio of any
integers ("whole numbers"). Hence, 22/7 is ONLY an approximation. The
built-in value for pi in R is also just an approximation (pi has no terminal
digit on the right of the decimal point so any finite number of digits will
just be an approximation). Yet, the built-in value for pi in R is a more
precise approximation, which is usually preferred...
On May 30, 2011 2:02 AM, "Vincy Pyne"  wrote:
> Dear R helpers,
>
> I have one basic doubt about the value of pi. In school, we have learned
that
>
> pi = 22/7 (which is = 3.142857). However, if I type pi in R, I get pi =
3.141593. So which value of pi should be considered?
>
> Regards
>
> Vincy
>
>
>
>
>
> [[alternative HTML version deleted]]
>
> __
> R-help@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.

[[alternative HTML version deleted]]

__
R-help@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.

__
R-help@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.


Re: [R] Value of 'pi'

2011-05-30 Thread Simon Blomberg
Indeed!

>  pt(pi, df=6)
[1] 0.9899863

Simon.


On 31/05/11 14:38, MacQueen, Don wrote:
> I once knew someone who thought that a 1-sided upper 99% confidence limit
> for the mean with n=7 was calculated by multiplying the standard error of
> the mean by pi.
>
> -Don
>
> On 5/30/11 6:00 PM, "Bentley Coffey"  wrote:
>
>> Pi is an irRATIOnal number, meaning that it is not equal to the ratio of
>> any
>> integers ("whole numbers"). Hence, 22/7 is ONLY an approximation. The
>> built-in value for pi in R is also just an approximation (pi has no
>> terminal
>> digit on the right of the decimal point so any finite number of digits
>> will
>> just be an approximation). Yet, the built-in value for pi in R is a more
>> precise approximation, which is usually preferred...
>> On May 30, 2011 2:02 AM, "Vincy Pyne"  wrote:
>>> Dear R helpers,
>>>
>>> I have one basic doubt about the value of pi. In school, we have learned
>> that
>>> pi = 22/7 (which is = 3.142857). However, if I type pi in R, I get pi =
>> 3.141593. So which value of pi should be considered?
>>> Regards
>>>
>>> Vincy
>>>
>>>
>>>
>>>
>>>
>>> [[alternative HTML version deleted]]
>>>
>>> __
>>> R-help@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.
>>  [[alternative HTML version deleted]]
>>
>> __
>> R-help@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.
> __
> R-help@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.


-- 
Simon Blomberg, BSc (Hons), PhD, MAppStat.
Lecturer and Consultant Statistician
School of Biological Sciences
The University of Queensland
St. Lucia Queensland 4072
Australia
T: +61 7 3365 2506
email: S.Blomberg1_at_uq.edu.au
http://www.uq.edu.au/~uqsblomb/

Policies:
1.  I will NOT analyse your data for you.
2.  Your deadline is your problem

Statistics is the grammar of science - Karl Pearson.


[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] Value of 'pi'

2011-05-30 Thread MacQueen, Don
I once knew someone who thought that a 1-sided upper 99% confidence limit
for the mean with n=7 was calculated by multiplying the standard error of
the mean by pi.

-Don

On 5/30/11 6:00 PM, "Bentley Coffey"  wrote:

>Pi is an irRATIOnal number, meaning that it is not equal to the ratio of
>any
>integers ("whole numbers"). Hence, 22/7 is ONLY an approximation. The
>built-in value for pi in R is also just an approximation (pi has no
>terminal
>digit on the right of the decimal point so any finite number of digits
>will
>just be an approximation). Yet, the built-in value for pi in R is a more
>precise approximation, which is usually preferred...
>On May 30, 2011 2:02 AM, "Vincy Pyne"  wrote:
>> Dear R helpers,
>>
>> I have one basic doubt about the value of pi. In school, we have learned
>that
>>
>> pi = 22/7 (which is = 3.142857). However, if I type pi in R, I get pi =
>3.141593. So which value of pi should be considered?
>>
>> Regards
>>
>> Vincy
>>
>>
>>
>>
>>
>> [[alternative HTML version deleted]]
>>
>> __
>> R-help@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.
>
>   [[alternative HTML version deleted]]
>
>__
>R-help@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.

__
R-help@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.


Re: [R] Value of 'pi'

2011-05-30 Thread Bentley Coffey
Pi is an irRATIOnal number, meaning that it is not equal to the ratio of any
integers ("whole numbers"). Hence, 22/7 is ONLY an approximation. The
built-in value for pi in R is also just an approximation (pi has no terminal
digit on the right of the decimal point so any finite number of digits will
just be an approximation). Yet, the built-in value for pi in R is a more
precise approximation, which is usually preferred...
On May 30, 2011 2:02 AM, "Vincy Pyne"  wrote:
> Dear R helpers,
>
> I have one basic doubt about the value of pi. In school, we have learned
that
>
> pi = 22/7 (which is = 3.142857). However, if I type pi in R, I get pi =
3.141593. So which value of pi should be considered?
>
> Regards
>
> Vincy
>
>
>
>
>
> [[alternative HTML version deleted]]
>
> __
> R-help@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.

[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] Value of 'pi'

2011-05-30 Thread Joshua Wiley
Hmm, I think the difference would be much less dramatic.  The rest of
the world would just have to update its Midwest/Indiana list to:

Weird Things about Indiana:

1) "Daylight Savings Time" (to save candles?)
2) Still has horses, carts, and buggies
3) Does not believe in math (really just an extension of #2)



On Mon, May 30, 2011 at 3:35 PM, Oliver Bandel
 wrote:
> Hello,
>
> interesting would be to estimate what would have happened,
> if the law would have been installed.
>
> What consequences would that have caused?
>
> Could it make the earth flat again?
> And which shape would the earth have, if pi = 3?
>
> And how would a football-ball look like?
> (Like american football-ball, or would it look like a triangle?) ;)
>
> The world maybe would have been imploded.
>
> And maybe because this would happen, the law was never activated...
> ...just because of Anthropic principle, which saved our world from that. ;)
>
> Ciao,
>   Oliver
>
> __
> R-help@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.
>



-- 
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
http://www.joshuawiley.com/

__
R-help@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.


Re: [R] Value of 'pi'

2011-05-30 Thread Oliver Bandel
Hello,

interesting would be to estimate what would have happened,
if the law would have been installed.

What consequences would that have caused?

Could it make the earth flat again?
And which shape would the earth have, if pi = 3?

And how would a football-ball look like?
(Like american football-ball, or would it look like a triangle?) ;)

The world maybe would have been imploded.

And maybe because this would happen, the law was never activated...
...just because of Anthropic principle, which saved our world from that. ;)

Ciao,
   Oliver

__
R-help@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.


Re: [R] Value of 'pi'

2011-05-30 Thread Ravi Varadhan
Here is the wiki entry on the "Indiana Pi Bill"

http://en.wikipedia.org/wiki/Indiana_Pi_Bill

Ravi.

From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On Behalf Of 
bill.venab...@csiro.au [bill.venab...@csiro.au]
Sent: Monday, May 30, 2011 2:53 AM
To: jwiley.ps...@gmail.com; vincy_p...@yahoo.ca
Cc: r-help@r-project.org
Subject: Re: [R] Value of 'pi'

There is an urban legend that says Indiana passed a law implying pi = 3.

(Because it says so in the bible...)



-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On 
Behalf Of Joshua Wiley
Sent: Monday, 30 May 2011 4:10 PM
To: Vincy Pyne
Cc: r-help@r-project.org
Subject: Re: [R] Value of 'pi'

Dear Vincy,

I hope that in school you also learned that 22/7 is an approximation.
Please consult your local mathematician for a proof that pi != 22/7.
A quick search will provide you with volumes of information on what pi
is, how it may be calculated, and calculations out to thousands of
digits.

Cheers,

Josh

On Sun, May 29, 2011 at 11:01 PM, Vincy Pyne  wrote:
> Dear R helpers,
>
> I have one basic doubt about the value of pi. In school, we have learned that
>
> pi = 22/7 (which is = 3.142857). However, if I type pi in R, I get pi = 
> 3.141593. So which value of pi should be considered?
>
> Regards
>
> Vincy
>
>
>
>
>
>[[alternative HTML version deleted]]
>
> __
> R-help@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.
>



--
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
http://www.joshuawiley.com/

__
R-help@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.

__
R-help@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.
__
R-help@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.


Re: [R] Value of 'pi'

2011-05-30 Thread Mike Marchywka












> Date: Sun, 29 May 2011 23:09:47 -0700
> From: jwiley.ps...@gmail.com
> To: vincy_p...@yahoo.ca
> CC: r-help@r-project.org
> Subject: Re: [R] Value of 'pi'
>
> Dear Vincy,
>
> I hope that in school you also learned that 22/7 is an approximation.
> Please consult your local mathematician for a proof that pi != 22/7.
> A quick search will provide you with volumes of information on what pi
> is, how it may be calculated, and calculations out to thousands of
> digits.
>
> Cheers,
>
> Josh
>
> On Sun, May 29, 2011 at 11:01 PM, Vincy Pyne wrote:
> > Dear R helpers,
> >
> > I have one basic doubt about the value of pi. In school, we have learned 
> > that
> >
> > pi = 22/7 (which is = 3.142857). However, if I type pi in R, I get pi = 
> > 3.141593. So which value of pi should be considered?

You could do this if you trust your trig functions since
that is presumably what you want a value of pi for,

> atan(1)
[1] 0.7853982
> atan(1)*4
[1] 3.141593

> atan(1)*4*7-22
[1] -0.008851425

> atan(1)*4-pi
[1] 0





> >
> > Regards
> >
> > Vincy
> >
> >
> >
> >
> >
> > [[alternative HTML version deleted]]
> >
> > __
> > R-help@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.
> >
>
>
>
> --
> Joshua Wiley
> Ph.D. Student, Health Psychology
> University of California, Los Angeles
> http://www.joshuawiley.com/
>
> __
> R-help@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.
>   
__
R-help@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.


Re: [R] Value of 'pi'

2011-05-30 Thread Barry Rowlingson
>  "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. "

 And just a few more decimal places will get you the circumference of
the universe accurate to the size of a proton:

http://www.trans4mind.com/personal_development/JavaScript/longnumAstronomical.htm

 Neglecting Einstein, of course.

Barry

__
R-help@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.


Re: [R] Value of 'pi'

2011-05-30 Thread Vincy Pyne
That's the beauty of this R forum. This forum is full of knowledgeable wizards 
and replies received along-with the related discussions pertaining to a simple 
harmless question like this enriches us tremendously. Thanks a lot for all your 
comments. I am sticking to the value of 'pi' as provided in R as I am hardcore 
"R" disciple.

Regards

Vincy

--- On Mon, 5/30/11, ted.hard...@wlandres.net  wrote:

From: ted.hard...@wlandres.net 
Subject: Re: [R] Value of 'pi'
To: r-help@r-project.org
Received: Monday, May 30, 2011, 8:52 AM

On 30-May-11 07:06:57, Peter Langfelder wrote:
> On Sun, May 29, 2011 at 11:53 PM,   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
> 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

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) 
Fax-to-email: +44 (0)870 094 0861
Date: 30-May-11                                       Time: 09:52:09
-- XFMail --

__
R-help@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.

[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] Value of 'pi'

2011-05-30 Thread Ted Harding
On 30-May-11 07:06:57, Peter Langfelder wrote:
> On Sun, May 29, 2011 at 11:53 PM,   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
> 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

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) 
Fax-to-email: +44 (0)870 094 0861
Date: 30-May-11   Time: 09:52:09
-- XFMail --

__
R-help@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.


Re: [R] Value of 'pi'

2011-05-30 Thread Peter Langfelder
On Sun, May 29, 2011 at 11:53 PM,   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
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

__
R-help@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.


Re: [R] Value of 'pi'

2011-05-29 Thread Bill.Venables
There is an urban legend that says Indiana passed a law implying pi = 3.

(Because it says so in the bible...)

 

-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On 
Behalf Of Joshua Wiley
Sent: Monday, 30 May 2011 4:10 PM
To: Vincy Pyne
Cc: r-help@r-project.org
Subject: Re: [R] Value of 'pi'

Dear Vincy,

I hope that in school you also learned that 22/7 is an approximation.
Please consult your local mathematician for a proof that pi != 22/7.
A quick search will provide you with volumes of information on what pi
is, how it may be calculated, and calculations out to thousands of
digits.

Cheers,

Josh

On Sun, May 29, 2011 at 11:01 PM, Vincy Pyne  wrote:
> Dear R helpers,
>
> I have one basic doubt about the value of pi. In school, we have learned that
>
> pi = 22/7 (which is = 3.142857). However, if I type pi in R, I get pi = 
> 3.141593. So which value of pi should be considered?
>
> Regards
>
> Vincy
>
>
>
>
>
>        [[alternative HTML version deleted]]
>
> __
> R-help@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.
>



-- 
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
http://www.joshuawiley.com/

__
R-help@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.

__
R-help@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.


Re: [R] Value of 'pi'

2011-05-29 Thread Joshua Wiley
Dear Vincy,

I hope that in school you also learned that 22/7 is an approximation.
Please consult your local mathematician for a proof that pi != 22/7.
A quick search will provide you with volumes of information on what pi
is, how it may be calculated, and calculations out to thousands of
digits.

Cheers,

Josh

On Sun, May 29, 2011 at 11:01 PM, Vincy Pyne  wrote:
> Dear R helpers,
>
> I have one basic doubt about the value of pi. In school, we have learned that
>
> pi = 22/7 (which is = 3.142857). However, if I type pi in R, I get pi = 
> 3.141593. So which value of pi should be considered?
>
> Regards
>
> Vincy
>
>
>
>
>
>        [[alternative HTML version deleted]]
>
> __
> R-help@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.
>



-- 
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
http://www.joshuawiley.com/

__
R-help@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.


[R] Value of 'pi'

2011-05-29 Thread Vincy Pyne
Dear R helpers,

I have one basic doubt about the value of pi. In school, we have learned that 

pi = 22/7 (which is = 3.142857). However, if I type pi in R, I get pi = 
3.141593. So which value of pi should be considered?

Regards

Vincy





[[alternative HTML version deleted]]

__
R-help@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.