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

Jun
7
awarded  Good Answer
Jun
5
awarded  Enlightened
Jun
5
awarded  Nice Answer
May
29
comment Making Mathematica function files like in MATLAB
@Oleksandr, ah yes of course. I forgot about auto-compilation.
May
28
comment Making Mathematica function files like in MATLAB
A couple of points: pure functions do not involve any compilation - they are faster because they do not use the pattern matcher. Also, your last example works because Times is listable, not Range.
May
26
awarded  Good Answer
May
26
awarded  Necromancer
May
24
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.
May
24
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.
May
24
comment Forcing a locator button to remain on the surface of a sphere
Related: 5802
May
23
revised Improve simulation speed using Compile
added 459 characters in body
May
23
answered Improve simulation speed using Compile
May
23
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?