| bio | website | |
|---|---|---|
| location | Sydney, Australia | |
| age | 42 | |
| visits | member for | 1 year, 4 months |
| seen | 1 min ago | |
| stats | profile views | 1,471 |
Moderator of Mathematica.SE and Celtic goddess.
|
Mar 12 |
comment |
How can I multiply matrix and vector element wise like Numpy? See somewhat related question on StackOverflow: stackoverflow.com/a/7663695/758485 |
|
Mar 10 |
comment |
Unable to convert $\TeX$ input into mathematica Works for me on version 8.0.4, Mac OS X. But make sure you do have doubled backslashes - cutting one out gives the error Syntax::stresc: Unknown string escape \s.. |
|
Mar 9 |
comment |
How to partition a disk into individually spaced bricks? @Szabolcs it's related but he is asking for a different layout algorithm where (a) the words are all in the same point size and (b) layout is sequential from top to bottom in a brick-like offset grid. |
|
Mar 9 |
comment |
AbsoluteTiming affected by surrounding code @mmorris there is a badge for accepting your own answer when it has 3 or more upvotes, so self-accepting a good answer is perfectable... uh.... acceptable. And what Sjoerd said. |
|
Mar 9 |
comment |
Deleting parts of a large list As a general coding style comment, I would suggest that you replace all those sets of double-brackets [[1]][[1]][[1]] with the equivalent [[1, 1, 1]]. It will be much easier to read. |
|
Mar 9 |
comment |
Deleting parts of a large list My +1 is not just because you mentioned GDP in Australia, but it helps :) |
|
Mar 8 |
comment |
Are there advantages to using additional arguments of common functions rather than alternative ways of calculating with lists? @SjoerdC.deVries actually I didn't either until writing this question. I would normally do something involving two Transpose functions. I am sure there are other examples I can add to this question. |
|
Mar 8 |
comment |
Clustering of space-time data Well, yes, my algorithm (if you can call the 15 minutes I spend faffing around getting the Join function right) is sensitive to the $d$ threshold. |
|
Mar 8 |
comment |
Clustering of space-time data Because I delete short "clusters". Also I think in the first sequence, the gaze was fixed. I actually should have used a slightly larger $d$ threshold. |
|
Mar 7 |
comment |
Working with large data, pass-by-reference, compiled functions @ruebenko Interesting - does that actually speed things up, though? |
|
Mar 6 |
comment |
Labeling a bar chart, changing how rotated labels are centered You could try including an AdjustmentBox in your Placed function. I haven't time to write this up as a full answer just now but someone else might like to try. |
|
Mar 6 |
comment |
Efficiently Visualising Very Large Data Sets (without running out of memory) @Sjoerd I fixed up the question title and inserted the input data and function. |
|
Mar 5 |
comment |
How to create a histogram of annual events, such as cherry blossom time You could also use DaysBetween from the Calendar package to implement DayOfYear. |
|
Mar 5 |
comment |
Efficient way to generate random points with a predefined lower bound on their pairwise Euclidean distance This is a very creative answer, +1! There seems to be a relationship between the dimensions of canvas and the maximum number of possible iterations in the Nest function (and therefore number of points). Changing the 150 to 180 without also increasing canvas gives a range of errors including RandomChoice::lrwl: "The items for choice {} should be a list or a rule weights -> choices." |
|
Mar 5 |
comment |
Labels and tickmarks inside Frame Ted, do you mean something like the last graph in this question? |
|
Mar 5 |
comment |
Labels and tickmarks inside Frame You can fix the size of the graphic and the plot area simultaneously using ImagePadding as well as ImageSize. But some organizations use this style for their graphs so it would be useful to replicate. |
|
Mar 4 |
comment |
Trying to simplify Root expressions from the output of Eigenvalues You don't need the //N for matrixB: there is an analytical solution. If the highest power of the eigenvalues for matrixA is higher than those for matrixB, they won't be "as simple". |
|
Mar 4 |
comment |
Rearranging a Polynomial Sorry Tim, on my screen the first formula looked like it had a minus not a plus. I have deleted my comment. You know you can use LaTeX markup on the site? |
|
Mar 4 |
comment |
Are there rules of thumb for knowing when RandomVariate is more efficient than RandomReal? @Rojo It doesn't seem to be in the main documentation for RandomReal in v8, but can be verified to work with Histogram@RandomReal[NormalDistribution[0, 1], 1000]. It is the way to do it in version 7, and I hadn't adapted to RandomVariate yet. |
|
Mar 1 |
comment |
Generate a Unit Circle Trigonometry doesn't tFormat need to include how the thing should look if the condition is False, i.e., unaltered t2? Or was that the thing for 500 to work out on his own? |