Reputation
51,149
Next tag badge:
250/100 score
19/20 answers
Badges
6 80 199
Newest
 Nice Answer
Impact
~680k people reached

1d
comment Improve simulation speed using Compile
@user64620, More generally, I find it useful to have the Mathematica code closely reflect the compiled instructions, so that I can understand better what the compiler is doing. Sometimes you can spot optimisations more easily that way. Though as Oleksandr pointed out, it makes little difference for this problem since all the time is spent doing the dot products.
1d
comment Improve simulation speed using Compile
@user64620, I needed to use an explicit loop so that I could compute the trace at each step. Since Compile translates NestList into a procedural loop anyway (as you can see from the CompilePrint output), there's nothing to lose from writing it that way.
1d
comment Forcing a locator button to remain on the surface of a sphere
Related: 5802
2d
revised Improve simulation speed using Compile
added 459 characters in body
2d
answered Improve simulation speed using Compile
2d
answered Descending order of Permutations using Select[Tuples[{5, 4, 3, 2, 1}, {3}], OrderedQ]
May
21
awarded  Nice Answer
May
19
comment What is the most convenient way to read definitions of in-memory symbols when we don't have the source files? (Spelunking tools)
I've only just seen this - awesome! It's really good to have something like this built in, many thanks.
May
17
awarded  Nice Answer
May
16
answered How to find all the positions of max value of a list efficiently?
May
15
reviewed Approve Using Fourier to return exponential function
May
15
answered how to create, print and use variables using a loop in Mathematica?
May
15
comment Do not like quality of graphics when exported by Mathematica 9
and have you tried using EdgeForm[] in the graphics expression?
May
15
comment Do not like quality of graphics when exported by Mathematica 9
Are you using the default style sheet in Mathematica 9?
May
14
answered Stitching Mathematica-produced movies together
May
12
comment Different FourierParameters in each dimension for discrete Fourier transform
Maybe f[h_] := RotateRight@Reverse@Fourier[h, FourierParameters -> {1, -1}]
May
11
reviewed Close Treating expressions as symbols
May
11
comment CompiledFunctionCall vs. LibraryFunction
@MariusLadegårdMeyer, in your question you are defining compBinomial to take real arguments but when you call it from within compsum you pass integer arguments. I think this type inconsistency is why the library function is not used.
May
11
awarded  Enlightened
May
10
reviewed Close Create a dataset containing a frequency sweep/chirp?