amr

Apr
6
awarded Yearling
Apr
6
awarded Yearling
Apr
5
revised Organizing Code
added 22 characters in body
Apr
5
answered Organizing Code
Feb
3
comment .gitignore not working
A trailing space was my problem, which is even even trickier to find.
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
31
revised How to use the grammar files generated by ANTLR?
added 796 characters in body
Dec
31
revised How to use the grammar files generated by ANTLR?
added 796 characters in body
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).
Dec
8
awarded Benefactor
Dec
8
accepted Information-theoretic aspects of mathematical systems?
1 2 3 4 5