46,754 reputation
673184
bio website
location
age
visits member for 2 years, 10 months
seen 4 hours ago

5h
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.
5h
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.
17h
comment I define a variable as local to a module BUT then the module uses its global value! Why?
Isn't it another example of this? Using Module[{a, h}, Set @@ {a[h_], h^2}; a[4]] avoids the problem by "hiding" the inner scoping construct from Module
19h
answered Assigning new value in association
1d
comment Problem with FindRoot applied to functions
Have you tried using a pattern which matches a vector of numeric values? rV_/;VectorQ[rV, NumericQ]
1d
answered Graphics3D: Objects with holes
2d
answered accessing elements of nested list
2d
comment accessing elements of nested list
@Mr.Wizard, this is close: mathematica.stackexchange.com/questions/63989/…
Jan
26
comment Maintain a function quality of an expression
If you check the documentation for Flatten, near the bottom there is a "See Also" section showing related functions. The first of these is Partition which is what you are looking for.
Jan
26
comment Maintain a function quality of an expression
You could just use OVector[n_] := Flatten[Oeff[n]]
Jan
23
answered For a given expression: if it appears, remove it, but if it is absent, add it
Jan
23
comment For a given expression: if it appears, remove it, but if it is absent, add it
I was just looking at something similar, but using a : Longest[(-Infinity | PatternSequence[])] as the head/tail patterns
Jan
22
comment How-to convert real number into List of its digits?
@user1989, No apology necessary! It's not a rule, just a good tactic to get the best out of the site :-)
Jan
22
comment population of dots with normal distribution of pitch
What is the "dot to dot" distance? The distance from a dot to its nearest neighbour or to all other dots?
Jan
22
comment How-to convert real number into List of its digits?
@user1989, no problem. By the way it is usual here to wait a while before accepting an answer, so as not to discourage others from posting other, potentially better, answers. 24 hours is good as it gives the whole globe a chance to contribute.
Jan
22
answered How-to convert real number into List of its digits?
Jan
22
comment ListPlot3D. Only plots about half of the data in a 3D matrix
I think this is the familiar long-standing problem with the triangulation algorithm. This is related though the "DelaunayDomainScaling" option in my answer there doesn't work in version 10. A simple workaround would be to plot the probability as a percentage (data[[All,2]] *= 100), or the population in thousands.
Jan
22
comment Why does Mathematica add Hold to the result of my user defined symbol?
You will get a better response if you post the actual code rather than an image.
Jan
22
comment Is there a CDF Player for Mathematica 10?
I've heard that a v10 player is (hoped) to be released in the next 2-4 weeks. The delay is partly due to cloud integration. The new player will apparently bring together Free Player and Player Pro into a single install. You will install the free player and then if required you can purchase a licence to activate the Pro functionality.
Jan
22
answered Coloring specific elements of sets with a prime modified order in an array plot