Activities/Turtle Art/Tutorials/Euclid: Difference between revisions
→Euclid for Turtles: How to cheat at geometry |
→Euclid for Turtles: Link to new page |
||
| Line 108: | Line 108: | ||
Then we have to think about what a Turtle knows about any point. The Turtle knows nothing about any point other than the point where it is currently located, unless we give it a memory for points. How we can tell it to move to other points, and draw lines between them? | Then we have to think about what a Turtle knows about any point. The Turtle knows nothing about any point other than the point where it is currently located, unless we give it a memory for points. How we can tell it to move to other points, and draw lines between them? | ||
With all of these objections that I have been raising, you might wonder how I got the Turtle to carry out the three Euclidean constructions in the first illustration above. That's easy. I cheated. | With all of these objections that I have been raising, you might wonder how I got the Turtle to carry out the three Euclidean constructions in the first illustration above. That's easy. I cheated. Take a look at the [[Activities/TurtleArt/Tutorials/Euclid/Cheating|program]] for these postulated constructions to see how. | ||
''The advantages of the method of postulation are great. They are the same as the advantages of theft over honest toil.'' | |||
Bertrand Russell | Bertrand Russell | ||
In order to do these three postulated constructions without this level of cheating, we have to tell the Turtle explicitly where points are in a coordinate system that it understands, and do some high-school level algebra and trigonometry in order to find out the direction to point the Turtle in and the distance it should move, or the radius of the circle. We have two relatively simple ways to tell the Turtle where a point is. Assign its x and y coordinates to [[Activities/TurtleArt/Tutorials/Variables|variables]], or put the values on the [[Activities/TurtleArt/Tutorials/Stack|stack]]. | In order to do these three postulated constructions without this level of cheating, we have to tell the Turtle explicitly where points are in a coordinate system that it understands, and do some high-school level algebra and trigonometry in order to find out the direction to point the Turtle in and the distance it should move, or the radius of the circle. We have two relatively simple ways to tell the Turtle where a point is. Assign its x and y coordinates to [[Activities/TurtleArt/Tutorials/Variables|variables]], or put the values on the [[Activities/TurtleArt/Tutorials/Stack|stack]]. | ||