1,084 reputation
2515
bio website
location
age
visits member for 2 years, 4 months
seen Oct 11 at 20:54

Apr
30
comment Detecting patterns of black and white stones on a 2D board
@Mr.Wizard - thanks for the pointer, I have somehow missed it.
Apr
27
comment Detecting patterns of black and white stones on a 2D board
I had a hard time choosing between your solution and Mr.Wizard's, but I decided to go with his as it can be better generalized for a 2D (not linear) patterns, which strictly speaking was my original question, even though for my needs linear patterns will probably be enough. I'm still very grateful for you sharing your solution - I think I'm finally starting to appreciate the beauty of Reap and Sow.
Apr
27
comment Detecting patterns of black and white stones on a 2D board
@Mr.Wizard - do you know a good place to read more about CellularAutomaton? The built-in documentation is quite sparse - I don't fully understand what each of the different types of rule mean. I have Wolfram's NKS, but I've only read through first couple of chapters - is it described there?
Apr
27
comment Detecting patterns of black and white stones on a 2D board
Ok, I fully understood your solution, and it's beautiful. I can see now how I can add diagonal and non-linear patterns, too.
Apr
25
comment Detecting patterns of black and white stones on a 2D board
@Pellesatansfant - thanks for the effort, but as the others have pointed out already, your solution is probably not very useful to me, for two reasons: 1) I want a Mathematica solution, and 2) Your solution doesn't really allow to define new patterns easily.
Apr
25
comment Detecting patterns of black and white stones on a 2D board
Is there a way to define new patterns easily, similar to my matchPattern below?
Apr
25
comment Detecting patterns of black and white stones on a 2D board
Thanks George - and +1 for a nice reversi visual. It looks like what you are suggesting here is somewhat similar to my solution below, but I would need to spend some time to truly understand what you are doing there.
Apr
25
comment Detecting patterns of black and white stones on a 2D board
Thanks Mr. Wizard. Although it doesn't fully answer my question, it is very inspirational. I will try to wrap my head around some of the new idioms that you are showing here over the weekend.
Apr
18
comment Few quick Mathematica questions about Dictionary
Need to go, but I'm sure you'll solve it now.
Apr
18
comment Few quick Mathematica questions about Dictionary
Great. Of even Flatten[con] will work. Now you know how to flatten first element of your list pl. What would you do to apply it to every element of your list pl? Hint: read my answer above.
Apr
18
comment Few quick Mathematica questions about Dictionary
Can you flatten this list: {1, {"Finnish", 728498}}? This is the first element of your pl.
Apr
18
comment Few quick Mathematica questions about Dictionary
This is certainly what you need to achieve, but can you rephrase it in terms of which lists you need to flatten? Can you give me an example?
Apr
18
comment Few quick Mathematica questions about Dictionary
That's right. It flattens a list to a certain level. Now, what do you need to flatten?
Apr
18
comment Few quick Mathematica questions about Dictionary
Let's read Flatten documentation together. What does it do?
Apr
18
comment Few quick Mathematica questions about Dictionary
If you want to get help, you would first need to explain: 1) What have you tried (with code); 2) What do you expect; 3) What did you receive instead. You don't need to use Flatten to solve (b) - just try to read and understand the section D above.
Apr
18
comment RSolve fails on a two-equation non-linear system
Note that H + h == 1 as per the question, but you have H[0]+h[0] != 1, and also since these are frequencies, H <= 1.
Oct
10
comment Help find a bright object on Mars!
Yes, I now realized that - and I gave the accepted answer to @nikie, hope you don't mind :).
Oct
10
comment Help find a bright object on Mars!
Excellent, thanks!
Oct
10
comment Help find a bright object on Mars!
Great tip, @RahulNarain - extracting saturation does certainly bring it up. I agree that it's not that bright.
Jun
12
comment Proving inequalities with Mathematica
@halirutan - thanks! I was wondering how other people do it, now I know.