Reputation
53,094
Next tag badge:
268/100 score
19/20 answers
Badges
6 87 208
Impact
~720k people reached

Feb
9
comment Why does list assignment with a packed array result in unpacked values?
@m_goldberg, since Taliesin has filed a bug one might argue that the question has been answered, albeit indirectly. Why does Mathematica do this? Because it has a bug. (As opposed to it being a deliberate design choice).
Feb
9
comment Getting the polynomial from a polinomial root equation
Related
Feb
5
comment Triangular mesh of random points on a sphere
+1 The result looks better than the logo!
Feb
4
comment How can I convert a complex number into an exponent form
@user907860, both terms are valid I believe.
Feb
3
comment What is the most convenient way to read definitions of in-memory symbols when we don't have the source files? (Spelunking tools)
@Mr.Wizard, I've uploaded a new version of Spelunk to my fork of the GitHub. This uses the wonderful FrontEnd`UndocumentedTestFEParserPacket (which Kuba reminded me of) to extract boxes from the symbol definition. This seems to do a great job of stripping out the typesetting stuff which has been causing problems. It'll need some testing but so far it looks promising.
Feb
3
comment How can I improve NumberString?
This looks very interesting. My original problem came from analysing boxes so this sort of approach might fit nicely.
Feb
3
comment How can I improve NumberString?
@ChipHurst, for my needs I just need to handle explicit numbers with precision marks and scientific notation, though if you have a method that can handle named constants too it would be interesting to see it. My original problem was to examine the box form of expressions and determine whether strings containing a backtick were numbers or symbols with context marks. I was surprised to discover that NumberString didn't work for this.
Feb
3
comment How can I improve NumberString?
Okay now I'm puzzled - why are two backslashes required?
Feb
3
comment How can I improve NumberString?
See comments on Mr Wizard's answer regarding "*" acting as a wildcard
Feb
3
comment How can I improve NumberString?
@Mr.Wizard, no, I'm not planning to self answer. Yes, safety is basically the only reason - it would be okay to create a held expression for example.
Feb
3
comment A better “VisibleSpectrum” function?
+1 Nice. Though spelunking ChromaticityPlot is so last year :-)
Feb
3
comment What is the most convenient way to read definitions of in-memory symbols when we don't have the source files? (Spelunking tools)
@Mr.Wizard, I guess so. There are a probably a few other typesetting functions that should be blocked too. I really need to give the code a bit more attention now that Mathematica has moved on a couple of versions.
Feb
3
comment What is the most convenient way to read definitions of in-memory symbols when we don't have the source files? (Spelunking tools)
@Mr.Wizard, try Block[{Legended}, Spelunk @ ...]
Feb
3
comment Creating a fast random array generator
@Mr.Wizard, at first I though so too, but this one seems to have an additional constraint on the values (0<=x<=l) which is not in 54448.
Feb
1
comment Custom distribution
Hi arslan, welcome to Mathematica Stack Exchange. You've come to the right place for help but unfortunately you haven't supplied enough information for anyone to help you. The only clue about what you are trying to do is a line of code which doesn't do it! It's not even clear if you are trying to make a trivariate distribution or a univariate distribution in x with a and b as parameters. Please use the "edit" button underneath the question to add some details about your problem.
Feb
1
comment Methods for producting alternating TickLabels in a Plot?
You could save a few more keystrokes by omitting Floor from your first method
Jan
31
comment Restoring an out of focus image
I will add to Oleksandr's comment that you appear to be working with a jpeg image, so a lot of information will have been discarded by the compression algorithm. I suspect it will be impossible to get anything much better than your Sharpen result.
Jan
30
comment I define a variable as local to a module BUT then the module uses its global value! Why?
@Leonid, I was using the SE app on my phone and it hadn't updated to show your comments so my reply to Mr Wizard appears to be ignoring or disagreeing with you! I do see what you mean, Set and Rule are scoping constructs so the behaviour is consistent (though arguably undesirable), which is what I thought originally. I hope you manage to find time to write down that list of rules - it's a shame the official documentation doesn't go into the level of detail that you do in your contributions here.
Jan
29
comment I define a variable as local to a module BUT then the module uses its global value! Why?
The StrictLexicalScoping option looks useful, though I wish it were implemented as a StrictLexicalModule function rather than a system option.
Jan
29
comment I define a variable as local to a module BUT then the module uses its global value! Why?
Makes perfect sense, I hadn't properly appreciated the real issue here, that the renaming exemption should not apply to unheld constructs.