Reputation
53,019
Next tag badge:
268/100 score
19/20 answers
Badges
6 87 207
Newest
 Nice Answer
Impact
~719k people reached

Apr
7
comment Nested If statement with unevaluated arguments
And will evaluate its arguments sequentially, returning False as soon as any argument is False.
Apr
6
comment How to remove Graphics3D artifacts and order graphics objects; best practice?
No problem with v10.1 on Windows 7 with another Nvidia GPU. I can reproduce the problem (and the lack of antialiasing) by switching to the software renderer Style[Graphics3D[...], "RenderingOptions" -> {"Graphics3DRenderingEngine" -> "Software"}]
Apr
6
comment Access properties in Mathematica
@HaniSafadi, I looked at the definition of HiddenMarkovProcess using this tool and found it fairly quickly.
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]]