[R] Season's Greetings (and great news ... )!

2013-12-22 Thread Ted Harding
Greetings All! With the Festive Season fast approaching, I bring you joy with the news (which you will surely wish to celebrate) that R cannot do arithmetic! Usually, this is manifest in a trivial way when users report puzzlement that, for instance, sqrt(pi)^2 == pi # [1] FALSE which is the

Re: [R] Season's Greetings (and great news ... )!

2013-12-22 Thread Suzen, Mehmet
I wouldn't blame R for floating-point arithmetic and our personal feeling of what 'zero' should be. options(digits=20) pi [1] 3.141592653589793116 sqrt(pi)^2 [1] 3.1415926535897926719 (pi - sqrt(pi)^2) 1e-15 [1] TRUE There was a similar post before, for example see:

Re: [R] Season's Greetings (and great news ... )!

2013-12-22 Thread Bert Gunter
Yes. See also Feigenbaum's constant and chaos theory for the general context. Cheers, Bert On Sun, Dec 22, 2013 at 8:54 AM, Suzen, Mehmet msu...@gmail.com wrote: I wouldn't blame R for floating-point arithmetic and our personal feeling of what 'zero' should be. options(digits=20) pi [1]

Re: [R] Season's Greetings (and great news ... )!

2013-12-22 Thread Ted Harding
Thanks for the comments, Bert and Mehmet! It is of course a serious and interesting area to explore (and I'm aware of the chaos context; I initially got into this areas year ago when I was exploring the possibilities for chaos in fish population dynamics -- and they're certainly there)! But,

Re: [R] Season's Greetings (and great news ... )!

2013-12-22 Thread John Kane
(or whatever the keyboard analogue of that may be) Hands clasped? Fingers interlaced? John Kane Kingston ON Canada -Original Message- From: ted.hard...@wlandres.net Sent: Sun, 22 Dec 2013 18:37:18 - (GMT) To: r-help@r-project.org Subject: Re: [R] Season's Greetings