r language - Topic Profile
  Home FAQ Contact Sign in
 
Advanced search
POPULAR GROUPS

more...

Most active groups for topic
perl.cpan.testers 4786
aol.neighborhood.nj.jerseycity 778
comp.lang.fortran 447
comp.lang.forth 263
comp.lang.functional 229
alt.philosophy 217
alt.seduction.fast 97
gnu.emacs.help 89
alt.magick 81
soc.culture.hongkong 64
Last week most active authors
No posts for a week
Last active threads
The right answer of -1^2 is?
Started Förster vom Silberwald · Date: Oct 3, 2007 11:13 · 64 post(s)
max(NaN,0) should be NaN
Started norb1 · Date: Aug 27, 2006 18:19 · 100 post(s)
Last week hot threads
No posts for a week
Latest posts
Re: The right answer of -1^2 is?
Group: comp.lang.functional · Group Profile · Search for r language in comp.lang.functional
Author: Ingo Menger
Date: Oct 5, 2007 02:46

...1^2 I had thought it is +1. My Bigloo Scheme gives: (expt -1 2) --> 1 However, the R language tailored to statistical calculations gives the following: print(-1^2) --> -1 Some have argued on heise.... problem I guess. Surely the answer depends on the rules of a language? Programming languages != mathematical notation. As an example, in C you will get -3. And in ...
Show full article (1.02Kb)
Re: The right answer of -1^2 is?
Group: comp.lang.functional · Group Profile · Search for r language in comp.lang.functional
Author: Bakul Shah
Date: Oct 4, 2007 11:51

... -1^2 I had thought it is +1. My Bigloo Scheme gives: (expt -1 2) --> 1 However, the R language tailored to statistical calculations gives the following: print(-1^2) --> -1 Some have argued on heise.de ...not so easy problem I guess. Surely the answer depends on the rules of a language? Programming languages != mathematical notation. As an example, in C you will get -3.
Show full article (0.57Kb)
Re: The right answer of -1^2 is?
Group: comp.lang.functional · Group Profile · Search for r language in comp.lang.functional
Author: Duane Rettig
Date: Oct 3, 2007 16:56

...1^2 I had thought it is +1. My Bigloo Scheme gives: (expt -1 2) --> 1 However, the R language tailored to statistical calculations gives the following: print(-1^2) --> -1 Some have argued on heise.de... how to interpret the string "-1^2", which is the problem of the "other" language to solve or conventionalize. -- Duane Rettig duane@franz.com Franz Inc. http://www.franz.com...
Show full article (1.19Kb)
Re: The right answer of -1^2 is?
Group: comp.lang.functional · Group Profile · Search for r language in comp.lang.functional
Author: Szabolcs Horvát
Date: Oct 3, 2007 11:27

... I had thought it is +1. My Bigloo Scheme gives: (expt -1 2) --> 1 However, the R language tailored to statistical calculations gives the following: print(-1^2) --> -1 Some have ...notation: -1^2 Is it -(1^2) or (-1)^2? All languages I use interpret it as -(1^2) which is what a .... (Think -x^2.) But I can imagine that there exist languages which treat the minus sign as part of the number, and ...
Show full article (0.95Kb)
The right answer of -1^2 is?
Group: comp.lang.functional · Group Profile · Search for r language in comp.lang.functional
Author: Förster vom Silberwald
Date: Oct 3, 2007 11:13

... about the following: What is the correct answer of the following: -1^2 I had thought it is +1. My Bigloo Scheme gives: (expt -1 2) --> 1 However, the R language tailored to statistical calculations gives the following: print(-1^2) --> -1 Some have argued on heise.de that -1 is mathematically speaking the right answer. Thanks, for any...
Show full article (0.55Kb)
Re: max(NaN,0) should be NaN
Group: comp.lang.fortran · Group Profile · Search for r language in comp.lang.fortran
Author: glen herrmannsfeldt
Date: Sep 7, 2006 11:37

...result, the other is that this data value should be ignored. Note that the S and R languages used in statistics have both NA and NaN. NA for data that should be ignored, usually... such as someone not answering a survey question. As an interpreted language it is fairly easy to do, though I believe they use... bits. It might be an interesting feature to add to other languages and/or hardware. -- glen
Show full article (0.75Kb)
Re: max(NaN,0) should be NaN
Group: comp.lang.fortran · Group Profile · Search for r language in comp.lang.fortran
Author: glen herrmannsfeldt
Date: Aug 30, 2006 14:11

... me, just go compute a useful value from other arguments." (And I still have trouble with that viewpoint.) The R language, mostly used for statistics work, has both NA and NaN. NA when you don't know anything about the value...as the result of computations. I believe the distiction could also make sense in other languages, though I don't expect it to appear anytime soon. -- glen
Show full article (0.72Kb)