Reputation
51,829
Next tag badge:
254/100 score
19/20 answers
Badges
6 86 202
Impact
~695k people reached

Apr
6
comment Access properties in Mathematica
Remember that the list notation {1,2,3} is just shorthand for List[1,2,3] so it is really no different from any other head[args] expression.
Apr
4
comment ContourLabels issues
Setting contours explicitly seems to fix it: Contours -> FindDivisions[{0, 2*10^19}, 10]
Apr
4
comment ContourLabels issues
The cut-off appears to be at Developer`$MaxMachineInteger
Apr
3
comment What are the cool kids talking about when they use ##&[]?
@raxacoricofallapatorius, it works the same in most places that you'll see Unevaluated@Sequence[], but I hesitate to say that it's equivalent. There may be counterexamples.
Apr
3
comment String-manipulation bugs in v10.1
@Jinxed, it works for me. Perhaps you saw a cached result? Could you try ClearSystemCache[] or a kernel reset and try again?
Apr
3
comment String-manipulation bugs in v10.1
As a temporary workaround the version 10.0.2 regex can be obtained by evaluating StringPattern`Dump`rules = StringPattern`Dump`rules /. "(?<!" -> "(?=";
Apr
2
comment What are the cool kids talking about when they use ##&[]?
Good explanation. I prefer Unevaluated[] to Unevaluated@Sequence[] though I can see why the latter might be considered clearer.
Apr
1
comment How to get Mathematica to compile with target C?
Try evaluating Compiler`$CCompilerOptions = {"ShellOutputFunction" -> Print} to see the compiler output
Mar
28
comment How to sort digits in a string while keeping other characters untouched?
+1 You could also use !OrderedQ[{b, d}] as your condition which should be faster than converting to numbers.
Mar
21
comment How can I create a 3D representation of an object with known coordinates and adjacency table in mathematica?
@Jinxed, the OP didn't include data - I copied it in from kguler's answer because I though it was worth keeping the question open and all it really lacked was example data.
Mar
21
comment How can I create a 3D representation of an object with known coordinates and adjacency table in mathematica?
I copied your example data into the question, hope you don't mind. I think it's worth keeping open. +1 of course.
Mar
21
comment Determine whether one value is divisible by another
Divisible[52^52, 52!] would be the obvious way
Mar
21
comment Match opening and closing parentheses?
@sacratus, other characters can be removed after appending the position numbers but before doing the replacement (see edit).
Mar
20
comment MagiQuest Wand Identifier
@Szabolcs, the wand's IR emission is modulated at 37 kHz according to a post here
Mar
16
comment How to programmatically covert a function-like rule to a pure function?
I think the Null argument is required only if you want to use the third argument (Attributes).
Mar
16
comment Inline documentation of “Properties”
@halirutan, nice find. I went looking for useful functions like that but got lost among the legacy code for the old documentation centre. Your answer is really great.
Mar
14
comment Finding large Collatz Sequences, trying to improve speed
It seems slightly faster, and in my opinion more readable, to catch the n=1 case with a separate pattern rather than testing for n==1, f[1] = 1; f[n_] := f[n] = 1 + f[If[EvenQ[n], n/2, 3 n + 1]]
Mar
14
comment White balance correction with Mathematica
@shrx, I've added a new method which doesn't affect the brightness.
Mar
13
comment 3D Vicsek Fractal Notebook
For the visualization only: p=Select[{-1,0,1}~Tuples~3,#.#<2&];Graphics3D[{Nest[#~Translate~p~Scale~(1/3)&,‌​Cuboid[],3]}]
Mar
6
comment Where can I find detailed information about the SystemOptions?
I agree with Szabolcs. You could search this site for examples of SetSytemOptions being used, but I think there will be far fewer examples than there are options. If you can identify the bottleneck in your code you could ask a specific question about improving its performance.