How can I detect locations of Go (aka Baduk, Weiqi) stones on a board?
What are all the "magic" Symbols in the Mathematica language?
What has changed in pattern matching functions with the Orderless attribute?
Converting a Sierpinski tetrahedron to a Graph
Working with DynamicModule: SetDelayed + OwnValues
How to speed up pattern matching
How to efficiently implement k-FN (k-Furthest Neighbors)?
How can I detect locations of Go (aka Baduk, Weiqi) stones on a board?
The Goal There are a couple apps that score a Go board from a photo. I was wondering if something like that would be possible with Mathematica. The key step is to detect the positions of the stones ...
- asked by Mark S. (19 votes), answered by halirutan (2 votes)
What are all the "magic" Symbols in the Mathematica language? Leonid Shifrin once wrote (excerpted): (Unevaluated) is one of a very few "magic symbols", along with Sequence and Evaluate - these are deeply wired into the system and can not be easily ...
- asked by Mr.Wizard (16 votes), answered by Mr.Wizard (9 votes)
What has changed in pattern matching functions with the Orderless attribute?
In making an attempt to answer this question, we ran into a version-dependent pattern-matching issue. An extended discussion in the comments transpired, and some inconsistencies arose. Consider the ...
- asked by march 16votes Converting a Sierpinski tetrahedron to a Graph http://mathematica.stackexchange.com/questions/121553/converting-a-sierpinski-tetrahedron-to-a-graph
I need a representation of a 3D Sierpinski gasket as a graph to perform some simulations on. The 2D version is included in GraphData[], but the 3D one is nowhere to be found, so I was wondering if ...
- asked by FEARxxx (13 votes), answered by J. M. (2 votes)
Working with DynamicModule: SetDelayed + OwnValues Shortly, definitions in form of e.g. x:= RandomReal[] have to be avoided inside DynamicModule[{x}, ...]. Why?, this Prints immediately: DynamicModule[{x}, x := Print[1]; {}] It hit us hard in the ...
- asked by Kuba (12 votes), answered by Kuba (13 votes)
How to speed up pattern matching http://mathematica.stackexchange.com/questions/121911/how-to-speed-up-pattern-matching
Main Problem Mr.Wizard posed this question when discussing another problem. I reproduce the main part of Mr.Wizard's problem here: MatchQ[{1, 2, 3, 4, 5}, {x__?((Echo[##]; False) &), y__}] On ...
- asked by Wjx (11 votes), answered by Michael E2 (5 votes)
How to efficiently implement k-FN (k-Furthest Neighbors)? I'd like to pick k points from a set of points in n-dimensions that are approximately "maximally apart" (sum of pairwise distances is almost maxed). What is an efficient way to do this in MMA? Using ...
- asked by M.R. (10 votes), answered by C. Woods (2 votes)