Reputation
51,829
Next tag badge:
254/100 score
19/20 answers
Badges
6 86 202
Impact
~695k people reached

15h
awarded  Popular Question
1d
comment Plotting a set of points given by a complex expression
@Mack, try ListPlot@ReIm@list where list is your list of complex numbers.
Jun
25
comment What is the role of the pattern object in this implementation?
NonlinearModelFit does not have any Hold* attributes, so your code evaluates model[a, b, c] with symbolic arguments before NonlinearModelFit "sees" it.
Jun
24
awarded  Good Answer
Jun
23
reviewed Leave Closed ContourPlot: Failing to re-scale it
Jun
20
reviewed Leave Open Best method to find variation in width along the image of a slit?
Jun
20
comment Automatically grouping words into categories
You should look at Classify (the built-in classifier Classify["FacebookTopic", list] has too few categories unfortunately). You may also find WordData[word, "BroaderTerms"] useful.
Jun
20
awarded  Nice Answer
Jun
11
awarded  Necromancer
Jun
7
comment How to properly generate messages from LibraryLink function?
@Ruslan, I'm not sure. I've never tried to send arguments with the message.
Jun
7
answered How to properly generate messages from LibraryLink function?
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.