[Rd] Numerical accuracy of matrix multiplication

2016-09-16 Thread Alexis Sarda
Hello, while testing the crossprod() function under Linux, I noticed the following: set.seed(883) x <- rnorm(100) x %*% x - sum(x^2) # equal to 1.421085e-14 Is this difference normal? It seems to be rather large for double precision. Regards, Alexis. [[alternative HTML version deleted]

Re: [Rd] Numerical accuracy of matrix multiplication

2016-09-16 Thread peter dalgaard
On 16 Sep 2016, at 12:41 , Alexis Sarda wrote: > Hello, > > while testing the crossprod() function under Linux, I noticed the following: > > set.seed(883) > x <- rnorm(100) > x %*% x - sum(x^2) # equal to 1.421085e-14 > > Is this difference normal? It seems to be rather large for double preci

[Rd] getGraphicsEvent() questions, minor feature/tweak request, and patch(es).

2016-09-16 Thread Richard Bodewits
Hey all, new R user and first timer here. I've been using getGraphicsEvent() on an X11-Xlib device in a kind of interactive loop, and would like to be able to stop it from printing newlines in the console when I don't actually want to print a prompt. Even an empty "" value still causes a newline r