3,667 reputation
1623
bio website
location
age
visits member for 2 years
seen Apr 17 at 4:52

Apr
6
awarded  Yearling
Apr
5
revised Organizing Code
added 22 characters in body
Apr
5
answered Organizing Code
Jan
28
awarded  Nice Answer
Jan
3
comment What's wrong with my use of Do?
to rephrase Anon's comment, Do[..., {i, list}] and Do[..., {i, number}] are different forms
Dec
31
comment Get DownValues that do not involve patterns?
one way of extracting the inputs/outputs: Cases[DownValues[f], (_[Verbatim[f][value : Except[_Pattern]]] :> result_) :> (value -> result)] (general note: i figure this out by using FullForm. e.g. FullForm[x_] => Pattern[x, Blank[]])
Dec
26
comment How to generate a random snowflake
i just noticed this isn't particularly in line with what OP was looking for. i don't think it'll hurt anyone though and it's in the Christmas spirit
Dec
26
revised How to generate a random snowflake
added 2 characters in body
Dec
26
comment How to generate a random snowflake
some of those remind me of snowflakes i've seen on other planets. ah the memories
Dec
26
revised How to generate a random snowflake
deleted 7 characters in body
Dec
26
revised How to generate a random snowflake
deleted 1 characters in body
Dec
26
answered How to generate a random snowflake
Dec
20
comment Module that finds the sum of digits of any given positive integer
@rola please see my answer to this question. it's important to understand that Mathematica's syntax is very "raw", in that there are no keywords. Module is not a keyword. it's a regular symbol/function that you could make your own version of. the important syntax is :=, which expects a pattern on the left and basically anything you want on the right. the purpose of Module is to create local variables. if you don't need local variables then you don't need Module, you can just write the expression, or e.g. f[x] := (Print[x]; x)
Dec
20
comment Module that finds the sum of digits of any given positive integer
@rola Look in the Mathematica documentation (F1 button in Mathematica), it is very useful. Total is basically the same as Plus @@ # & which is the same as Apply[Plus, #] &. The main difference, I suppose, is that Total allows you to specify the level (for example you can add up all the elements of a matrix, instead of its rows).
Nov
30
comment Pasting monospaced text into Mathematica notebook destroys aligment
maybe i'm being an idiot by bringing this up, but you can do some basic vector editing (by hand) in Mathematica
Oct
11
awarded  Announcer
Oct
9
awarded  Announcer
Sep
20
comment Raster with ColorFunction is blank when Dynamic Updating is disabled
@AlexeyBobrick Yep, I lowered the number of kernels. But I don't know if that is a general solution. As I wrote in the update, the problem appears to have something to do with the way Dynamic interacts with Rasterize, which is most likely an actual bug. Look at this thread which deals with the underlying Dynamic problem. I don't know why the number of kernels has an effect.
Sep
10
awarded  Nice Answer
Sep
10
revised Equivalent of MATLAB's “hold on” function
added 9 characters in body