Programming Challenge: Triangles Puzzle
Frank Buss writes "Last week was a challenge to write a program, which solves a simple geometric problem. There was nothing to win, only the solutions at the end are the win for all readers, but nevertheless the response was great (some thousands of web-hits) and there are some nice solutions."
No, I'm pretty sure mathematica would work fine.
It does indeed have it's own language, and plenty of permutation/combination logistics.
I'm guessing it'd be more useful to someone seeking a mathematical proof/theorem regarding the problem, listing complex genral-case equations at each step.
The more common programming languages are likely more productive, being concerned more with just the result than the theory at each step. tho I do know many math majors that would have an easier time programming it in mathematica, just because that's what they're used to.
Lisp is the logical language choice for this or any other heavily-combinational/AI task, though you'll never catch me programming in it.
Using any handheld calculator with an "x^y" key...
Take the number of divisions coming from a base vertex of the triangle and raise it to the power of the number of divisions coming from the opposite vertex. In the case given, 3 divisons to the power of 3 divisons = 27.
LOAD "SIG",8,1
LOADING...
READY.
RUN
http://online-judge.uva.es/problemset/ //Jesper Miller
Pedant mode: it's piqued, meaning aroused, not peaked.
The meme police, They live inside of my head