search for: plastictree

Displaying 5 results from an estimated 5 matches for "plastictree".

2010 Jun 24
5
Best way to compute a sum
> a <- 0 ; for(i in (1:200000000)) a <- a + 1/i > b <- 0 ; for(i in (200000000:1)) b <- b + 1/i > c <- sum(1/(1:200000000)) > d <- sum(1/(200000000:1)) > order(c(a,b,c,d)) [1] 1 2 4 3 > b<c [1] TRUE > c==d [1] FALSE I'd expected b being the largest, since we sum up the smallest numbers first. Instead, c is the largest, which is
2008 Feb 22
1
--ignore-existing not as expected
Is this correct behavior? File `foo' gets overwritten with directory `foo', even though --ignore-existing is given. % rsync --version rsync version 3.0.0pre10 protocol version 30.PR17 Copyright (C) 1996-2007 by Andrew Tridgell, Wayne Davison, and others. Web site: http://rsync.samba.org/ Capabilities: 64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
2008 Mar 04
1
preserve ctimes of *unchanged* directories on receiver
'rsync -a' updates the ctime on a directory even if no file in that directory has changed. A kind of workaround is to use '-O', but then the mtimes of directories are not preserved. (Usage example where this is important: maintain a copy of filesystem A in filesystem B, and use filesystem B as the source for incremental backups (e.g., with star). rsync is run before an
2009 Oct 23
1
Distance between axis and label adjusted automatically?
Is there a way to have the distance between label and axis adjusted automatically? This is interesting in particular for the y-axis, when it is not known in beforehand how many digits the numbers will have. It may happen then, that numbers and label overlap. All examples that I found work by estimating the required distance manually in beforehand and then providing large enough margins, or
2009 Oct 22
3
PDF too large, PNG bad quality
I wish to save a scatter plot comprising approx. 2 million points in order to include it in a LaTeX document. Using 'pdf(...)' produces a file of size about 20 MB, which is useless. Using 'cairo_pdf(...)' produces a smaller file, around 3 MB. This is still too large. Not only that the document will be too large, but also PDF viewers choke on this. Moreover, Cairo has problems