Skip to content

Instantly share code, notes, and snippets.

@mrflip
Last active January 12, 2026 08:07
Show Gist options
  • Select an option

  • Save mrflip/a973b1c60f4a38fc3277ddd57ce65b28 to your computer and use it in GitHub Desktop.

Select an option

Save mrflip/a973b1c60f4a38fc3277ddd57ce65b28 to your computer and use it in GitHub Desktop.
Ancient Greek Geometry walkthrough / answers / cheats

Solutions for Ancient Greek Geometry (https://sciencevsmagic.net/geo)

Most solutions taken from the about thread. See the comments below for more additions since my last check-in.

Polygons

Circle Packs

Circumscribed Polygons

Non-Constructible Figures

Abuse of floating-point math can make the widget approve non-constructible polygons (polygons with edge count 7, 9, 11, 13, 14, 18, 19, 21, 22, 23, 25, 26, 27, 28, 29, 31, 33, 35, ..., which cannot be precisely constructed using straightedge and compass):

@Ian-Zander
Copy link

I've been trying to find the 31-gon through brute force, but floating point keeps getting in the way.

@ILoveMath62
Copy link

ILoveMath62 commented Nov 18, 2025

Yeah. Makes sense. Did you think it was even possible to optimize the heptagon?

@ILoveMath62
Copy link

ILoveMath62 commented Nov 18, 2025

I literally joined yesterday.

@Ian-Zander
Copy link

In your 37-gon attempt, move 26 scrambled (weird floating point stuff I don't understand). It basically places multiple lines at once

@Ian-Zander
Copy link

Something I've found while brute forcing is that changing the scale sometimes fixes it

@ILoveMath62
Copy link

ILoveMath62 commented Nov 19, 2025

I don't know where @pizzystrizzy, @bikerusl, @ralpjs, @mrflip, @Doomslug682, or @WaiLFiN went.

@Eddy119
Copy link

Eddy119 commented Nov 20, 2025

Hi, interesting stuff, I am here, I can't look at all of this right now, but I'll look into it I'm the near future, I'm still interested, and wondering how to neusis construct a 11-gon...

Maybe we should make a discord for all of this? It might make discussions easier...

(My discord is the same as my GitHub)

@Ian-Zander
Copy link

A discord sounds cool

@ILoveMath62
Copy link

Hint for faster possible 21-gon

@Ian-Zander
Copy link

Ian-Zander commented Nov 22, 2025

My game isn't accepting it
edit: I was tweaking

@ILoveMath62
Copy link

ILoveMath62 commented Nov 22, 2025

Approximations to be done for more shapes:
43 (approximation used by taking the tangent, please share) Late Nov update: I finished it!
44 (11x4)
45 (5x9)
46 (23x2)
47 (use by tangent, please share) Early Dec update: finished by me!
48 (2⁴x3)
49 (use by tangent, please share) Early Dec update: Finished by me!
50 (25x2)
51 (use triangle on heptadecagon, please share)
52 (13x4)
53 (use tangent, please share) Mid-Dec update: finished by me!
54 (3³x2)
55 (5x11)
56 (7x8)
57 (3x19) Mid-Dec update: finished by me!
58 (29x2)
59 (use tan, please share) New Year's update: finished by me!
60 (3x4x5)
61 (use tan, please share)
62 (2x31)
63 (7x9)
64 (2⁶)
65 (13x5)
66 (2x3x11)
67 (use tan, please share)
68 (4x17)
69 (might be done with trisecting 23-gon, but might fail, please share)
70 (2x5x7)
71 (use tan, please share)
72 (8x9)
73 (pierpont, approx.)
74 (2x37 [please share 37]) Late November update: 37-gon is finished!
75 (3x25)
76 (4x19)
77 (7x11)
78 (2x3x13)
79 (use tan, please share)
80 (2⁴x5)
81 (3⁴ [use tan, please share])
82 (2*41 [please share 41]) Thanksgiving update: 41-gon finished!
83 (use tan, please share)
84 (3x4x7)
85 (5x17 [perfectly constructible as being a multiple of two distinct Fermat primes])
86 (2x43 [please share 43]) Late Nov update: I finished the 43-gon!
87 (3x29)
88 (8x11)
89 (use tan, please share)
90 (2x5x9)
91 (7x13)
92 (4x23)
93 (3x31)
94 (2x47 [please share 47])
95 (5x19)
96 (2⁵x3)
97 (pierpont, approx.)
98 (2x7² [please share 49])
99 (9x11)
100 (4x25)

Italic involves trisecting an angle and Bold can only be made by taking the tangent.

@ILoveMath62
Copy link

Ohhhhh... maybe instead of taking the tangent for the required angle, what if we take the tangent for 2 times the angle? That should give us more shapes.

@Eddy119
Copy link

Eddy119 commented Nov 23, 2025

I suspect approximating polygons with pierpont prime number of sides is probably not that much easier or different than approximating the non-constructible ones that aren't? Pierpont might be only relevant with neusis or other angle trisection, what's your experience? Are Pierpont polygons easier to approximate?

I guess if you had a reliable way to approximate angle trisection it could be easier here...

@ILoveMath62
Copy link

ILoveMath62 commented Nov 23, 2025

9-move Circle Pack 3 alternative

@ILoveMath62
Copy link

ILoveMath62 commented Nov 23, 2025

If you take the 11-move pentagon and remove the pentagon itself, you get the angle for the triacontagon. Using the star trick, this is the only possible 37-move triacontagon. (I don't know why it takes so long to render)

@ILoveMath62
Copy link

ILoveMath62 commented Nov 23, 2025

If you take the 35-move hendecagon (the one I would've shared if I'd never made the 28-move one) and bisect, you get a 46 move icosidigon. I can't share it though because it glitched. This is the link to it before it glitched. Finish the last move to make it.

@ILoveMath62
Copy link

ILoveMath62 commented Nov 23, 2025

From the 75-move nonadecagon, (enneadecagon) I decided to make different circles to get the points required, and actually get the points not on the x-axis, and form the parallel line needed to make the circle required, and use the star trick +several more to get 56 moves.
Edit: I managed to star with the starting 8π/19 angle to save 2 moves from the nonadecagon. New nonadecagon
Edit 2: I made the parallel line in a different way to save 7 moves.

@ILoveMath62
Copy link

ILoveMath62 commented Nov 26, 2025

Circle Pack 19 in 36 moves instead of 37. Circle Pack 15 in 41 moves. If the Circle Pack 15 had each inner circle r=1, the big circle would have r=1+sqrt(6+2/sqrt(5)+4sqrt(1+2/sqrt(5))), or this.

@ILoveMath62
Copy link

ILoveMath62 commented Nov 27, 2025

I took a different tangent for the icosiheptagon to make it in 49 moves.

@ILoveMath62
Copy link

ILoveMath62 commented Nov 27, 2025

Sharing decagon since the one shared here has an incorrect move. Dodecagon alternative (also 17 moves)

@ILoveMath62
Copy link

This probably explains why the widget sometimes glitches while rendering shapes. The 24-gon looks like this if you change line 28L33 into 28L10. This will load slowly.

@ILoveMath62
Copy link

ILoveMath62 commented Nov 27, 2025

I don’t know why these approximations even exist. 19-gon A 19-gon B nonagon

@ILoveMath62
Copy link

I removed 3 unnecessary moves from the icosanonagon to get 57 moves.

@ILoveMath62
Copy link

ILoveMath62 commented Nov 30, 2025

Hi, interesting stuff, I am here, I can't look at all of this right now, but I'll look into it I'm the near future, I'm still interested, and wondering how to neusis construct a 11-gon...

Maybe we should make a discord for all of this? It might make discussions easier...

(My discord is the same as my GitHub)

Eddy119, this reply you made has a grammar error. "look into it I'm the" Change I'm to in, please.

@ILoveMath62
Copy link

If you star with twice the starting angle of the heptadecagon, you can get 38 moves.

@ILoveMath62
Copy link

ILoveMath62 commented Nov 30, 2025

I managed to remove an unnecessary move on the 41-gon to get 62 moves. (I don’t know why it counts. This can be done)

@ILoveMath62
Copy link

ILoveMath62 commented Dec 6, 2025

13-gon by taking the tangent in 30 moves:
13-gon
49-gon by taking the tangent:
49-gon
50-gon from 25-gon:
50-gon

@ILoveMath62
Copy link

ILoveMath62 commented Dec 6, 2025

26-gon in 43 moves 18-gon in 33 moves 23-gon in 46 moves 11-gon in 27 moves

@ILoveMath62
Copy link

The 16-gon had 23 moves reported possible, finally I constructed it from the octagon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment