# Constructibles: Illustrate straightedge and compass constructions, and work with exact constructible numbers

**URL:** <https://discourse.julialang.org/t/constructibles-illustrate-straightedge-and-compass-constructions-and-work-with-exact-constructible-numbers/143154>\
**Category:** Package Announcements\
**Created:** [November 24, 2026, 1:43pm UTC](https://discourse.julialang.org/t/constructibles-illustrate-straightedge-and-compass-constructions-and-work-with-exact-constructible-numbers/143154 "2026-11-24T13:43:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![scheinerman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/scheinerman/32/35303_2.png) [@scheinerman](https://discourse.julialang.org/u/scheinerman)\
**Post date:** [November 24, 2026, 1:43pm UTC](https://discourse.julialang.org/t/constructibles-illustrate-straightedge-and-compass-constructions-and-work-with-exact-constructible-numbers/143154/1 "2026-11-24T13:43:34Z")

</div>

_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:

```julia
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
julia> dist(get_point(:A), get_point(:G)) == dist(get_point(:G), get_point(:B))
true

```
