[Rd] 0.5 != integrate(dnorm,0,20000) = 0

Spencer Graves spencer.graves at structuremonitoring.com
Tue Dec 7 00:32:44 CET 2010


Hello:


       The example "integrate(dnorm,0,20000)" says it "fails on many 
systems".  I just got 0 from it, when I should have gotten either an 
error or something close to 0.5.  I got this with R 2.12.0 under both 
Windows Vista_x64 and Linux (Fedora 13);  see the results from Windows 
below.  I thought you might want to know.


       Thanks for all your work in creating and maintaining R.


       Best Wishes,
       Spencer Graves
###############################

integrate(dnorm,0,20000) ## fails on many systems
0 with absolute error < 0
 > sessionInfo()
R version 2.12.0 (2010-10-15)
Platform: i386-pc-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base



More information about the R-devel mailing list