Re: [R] Value of 'pi'

From: Bentley Coffey <bentleygcoffey_at_gmail.com>
Date: Mon, 30 May 2011 21:00:52 -0400

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" <vincy_pyne_at_yahoo.ca> 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_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.

        [[alternative HTML version deleted]]



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 Tue 31 May 2011 - 01:05:32 GMT

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

All messages

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 Tue 31 May 2011 - 14:20:12 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.

list of date sections of archive