48,589 reputation
677190
bio website
location
age
visits member for 3 years
seen 4 hours ago

6h
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 Efficient way to compute the gradient
Hi novice, your question is about to be put on hold because there's not enough information to give a satisfactory answer. You can edit it (the edit button is underneath the question) to address the questions raised by Jens and then it can be re-opened.
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 Fourier transform of a real white noise on a 3D cubic lattice
While I understand that you have used Mathematica to compute the DFT, it appears that the question is about the actual mathematics rather than the software. I am voting to move this to the mathematics site. You may also want to read this.
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.