Reputation
1,735
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
4 19
Impact
~19k people reached

2d
comment How to get Mathematica to abort the current evaluation if an assertion fails?
OK, that's a long enough wait: Re-accepted!
May
18
comment How to get Mathematica to abort the current evaluation if an assertion fails?
@halirutan: no prob, I just "unaccepted" it : )
May
18
comment How to print unevaluated arguments in the form they were originally typed in?
@halirutan: thanks for the tip. It's an improvement, although it does not get rid of the Sequence[ ... ] wrapper. BTW, getting 2^2 instead of 2<sup>2</sup> is acceptable. I'll edit my question to clarify this point.
May
12
comment NaNs in tabular data and import performance
Thanks, I found reading your code instructive. I did find a pretty good solution, though. Both fast and simple. I just posted it. I think it's the way to go, at least when running under a "Unixy" OS. (There's got to be an equivalent move for Windows, but I know very little about that OS.)
May
12
comment NaNs in tabular data and import performance
@MarcoB: types depends on the file contents; for the sample input file I proposed in the EDIT, types = Table["Real", {400}] should do.
May
12
comment NaNs in tabular data and import performance
@MarcoB: I have not tried ReadLine, but I imagine that it would suffer from exactly the same ToExpression bottleneck that I showed in my example.
May
12
comment NaNs in tabular data and import performance
@episanty: yes, the output should be exactly the same that one would get from a call to ReadList on a version of the input file from which all the lines that mentioned nan had been filtered out.
May
12
comment NaNs in tabular data and import performance
@episanty: see the new EDIT section in my post.
May
12
comment NaNs in tabular data and import performance
@episanty: as the example I posted shows, I am discarding all the lines that contain NaNs.
Oct
28
comment How to change an option's value for a specific object?
@belisarius: Thanks for the tip; I'll keep that in mind from now on.
Oct
28
comment How to change an option's value for a specific object?
@belisarius: actually, I approached the question generally, from the standpoint of modifying an arbitrary option in an arbitrary object. I thought that this would be an easy-to-find topic. I was wrong.
Jan
15
comment How to order lexicographically the monomers of a parametrized polynomial?
OK, now I see what's going on: the output of the original expression I posted does not reflect the internal ordering.
Jan
15
comment How to order lexicographically the monomers of a parametrized polynomial?
Sorry, unfortunately, since my last comment I discovered some serious problems with this approach. I describe them in an EDIT to my post.
Jan
15
comment How to order lexicographically the monomers of a parametrized polynomial?
@chuy: thanks! (I was thrown off by the fact that the docs describe ParameterVariables as "an option for GroebnerBasis and PolynomialReduce.") If you care to post your comment as an answer, I'll be glad to accept it as such.
Sep
30
comment How to speed up multi-curve plotting?
Thanks! Switching to ListLinePlot made a huge difference. Please post your comment so that I can accept it.
Sep
29
comment How to embed graphic-element-specific metadata within a Graphics object?
@rm-rf: also, the Mathematica approach is far more specific than the approach I had in mind, namely, to associate metadata with individual elements, irrespective of whether the downstream use of it is based on tooltips or anything else. For example, a different interactive functionality would be one that lights up certain points depending on their associated metadata. This has nothing to do with tooltips. (I've added this example to my post.)
Sep
29
comment How to embed graphic-element-specific metadata within a Graphics object?
@rm-rf: what's orthogonal is the idea of wrapping the object (line, point, whatever) in the metadata, whereas my first instinct would have made it a property of the object...
Sep
29
comment How to embed graphic-element-specific metadata within a Graphics object?
@belisarius: thanks, that's what I was looking for. Mathematica's way of doing this sort of thing is, as usual, orthogonal to the first approach that comes to my mind, but it is always interesting...
Sep
25
comment How to examine the structure of Graphics objects
It's a situation that happens to me often in Mathematica SE, and more generally, cases in which I would like to accept more than one answer...
Sep
23
comment How to examine the structure of Graphics objects
...and got several replies, but it was the same problem all over again: these solutions work fine with simple examples but fail with the trees I want to visualize. What's worse, they all fail in utterly baffling ways, and this bizarreness of behavior greatly cooled my enthusiasm for this line of attack.