12,303 reputation
12765
bio website
location
age
visits member for 2 years, 3 months
seen 14 hours ago

The "WR" in my name has nothing to do with the company that develops Mathematica.


Mar
24
comment list of vectors with prescribed sum
The filtering is done in the call to FreeQ. We could add another pattern, e.g. FreeQ[#, z|u]&, where u = z + 1.
Mar
23
awarded  Necromancer
Mar
23
answered What is the most convenient way to read definitions of in-memory symbols when we don't have the source files? (Spelunking tools)
Mar
23
comment Returning a value from a Module
@enzotib The documentation is well hidden. Also see the discussion here.
Mar
23
comment list of vectors with prescribed sum
@rasher Much nicer, thanks. I have incorporated your suggestion as an addendum. For setPartitions[{3, 5, 7}, 5], the main function still dominates the run time as the helper optimization only shaved off about 0.12s off total time on my machine.
Mar
23
revised list of vectors with prescribed sum
incorporated @rasher's version of `partitions`
Mar
23
revised list of vectors with prescribed sum
added some benchmark numbers
Mar
23
answered list of vectors with prescribed sum
Mar
17
awarded  Enlightened
Mar
17
awarded  Nice Answer
Mar
16
awarded  Enlightened
Mar
16
awarded  Nice Answer
Mar
16
awarded  Nice Answer
Mar
15
comment Web Browser Screen Shot
@LiamWilliam Yes, we have to add browser@ScriptErrorsSuppressed = True. I have updated my answer.
Mar
15
revised Web Browser Screen Shot
added `ScriptErrorsSuppressed`
Mar
15
comment Web Browser Screen Shot
@LiamWilliam You might also get a speed-up by extracting the bytes from the .NET bitmap and constructing the Mathematica image directly in memory. This would avoid writing the bitmap to disk and then importing it (Import can be slow).
Mar
15
answered Web Browser Screen Shot
Mar
15
answered Multiplayer game in Mathematica: how to communicate between kernels?
Mar
15
revised Alternatives pattern in a function definition
added 6 characters in body
Mar
15
answered Alternatives pattern in a function definition