Constructible numbers are real numbers that can be formed from integers by repeated use of additional, subtraction, multiplication, division, and square root.
This module defines the ConstructibleNumber type. These are exact values (not floating point approximations).
This module also provides the functions ruler and compass that can be used to visualize classical geometry constructions. Constructions are seeded with two initial points :A and :B that are distance one apart. For example, to find the midpoint of the segment between these points, we proceed as follows:
using Constructibles
compass(:A, :B)
compass(:B, :A)
ruler(:A, :B)
ruler(:C, :D)
show_labels()
The resulting image will show that :G is the midpoint and this is verified as follows:
julia> dist(get_point(:A), get_point(:G)) == dist(get_point(:G), get_point(:B))
true