Reputation
49,954
Next tag badge:
247/100 score
19/20 answers
Badges
6 79 194
Newest
 Enlightened
Impact
~666k people reached

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.
Mar
6
comment Logical Circuit
For AND you can use And and for XOR you can use Xor
Mar
5
comment Coloring an image with two Color schemes based on a Range
@Kuba I usually use Mr Wizard's renderImage function for this sort of thing.
Mar
5
comment Coloring an image with two Color schemes based on a Range
@Kuba, weird. I have no idea why that should be the case! I only tried it with the 10x10 image so didn't realise how slow it was.
Mar
4
comment Random numbers in C++ and Mathematica gives wrong results?
Isn't this more of a C++ question than a Mathematica one?
Feb
28
comment Strange behavior when setting NumericQ of a symbol
Confirmed with Mathematica 10.0.2 on Windows. I suggest you report it as a bug to WRI.
Feb
24
comment Problem in evaluation of a solution and plotting
You generate dphi with a single x value for each of the monotonically increasing y values. So you cannot possibly expect to get a plot like the image you posted.