Changes

→‎Euclid for Turtles: How to cheat at geometry
Line 115: Line 115:     
Bertrand Russell
 
Bertrand Russell
 +
 +
* To join two points with a line, I actually set the Turtle on a point, set its heading (the direction it was pointing) and sent it off in that direction both to draw the second point and to draw the line joining the points.
 +
 +
* To extend a line, I drew it, and then told the Turtle to go forward in the same direction.
 +
 +
* To draw a circle, I put the Turtle at the outer end of the line, and told it the radius length.
 +
 +
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]].
    
==Euclidean Algebra==
 
==Euclidean Algebra==
    
It turns out that the three Euclidean constructions can give us new points from older ones by combinations of addition, subtraction, multiplication, division, and taking square roots, but cannot do anything else.
 
It turns out that the three Euclidean constructions can give us new points from older ones by combinations of addition, subtraction, multiplication, division, and taking square roots, but cannot do anything else.
1,009

edits