Number of triangles Puzzle
|
07-11-2016, 05:00 PM
(This post was last modified: 07-11-2016 05:30 PM by chromos.)
Post: #1
|
|||
|
|||
Number of triangles Puzzle
The program calculates the number of triangles in the geometrical figures.
Example 1: How many triangles are in this puzzle? a) First we mark every important point on every line (doesn't matter in which order): b) Next we insert every line with their points as sublists into list L0 (doesn't matter in which order): L0:= { {1,2,3}, {1,4,5,6}, {6,10,9}, {3,7,8,9}, {5,11,12,13,14,15,7}, {6,16,17,13,18,19,3}, {2,4}, {4,11,16,20}, {20,21,14}, {14,18,23,2}, {22,19,15,8}, {8,10}, {10,21,17,12}, {12,23,22}, } c) Now run the program. :-) ===================== Example 2: How many triangles are in this puzzle? a) First we mark every important point on every line (doesn't matter in which order): b) Next we insert every line with their points as sublists into list L0 (doesn't matter in which order): L0:= { {1,2,3}, {3,4,5,6}, {6,7,1}, {1,8,10,4}, {1,9,11,5}, {2,8,9,7}, {3,10,11,7} } c) Now run the program. :-) ===================== PHP Code: // The program calculates the number of triangles in the geometrical figures (puzzles). Prime G2, 15C CE |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)