SandboxSolutions

Solutions to Puzzles

Basic Geometry

Puzzle 1: Line through a point

<graph>
    <point name="p1">(1,1)</point>
    <line through="$p1"/>
</graph>

Back to Puzzle 1


Puzzle 2: Circle with inscribed polygon

First solution

<graph>
    <point name="p1">(0,5)</point>
    <circle name="circ1" radius="5" through="$p1"/>
    <regularPolygon vertices="$p1" center="$circ1.center"/>
</graph>

Bonus Challenge solution

<p>Challenge solution:</p>
<p>Enter number of sides: <mathInput name="userSides" prefill="4"/></p>
<graph>
    <point name="p1">(0,5)</point>
    <circle name="circ1" radius="5" through="$p1"/>
    <regularPolygon vertices="$p1" center="$circ1.center" numSides="$userSides"/>
</graph>

An alternative solution

<graph>
    <circle name="circ1" radius="5"/>
    <regularPolygon circumradius="$circ1.radius" center="$circ1.center"/>
</graph>

Back to Puzzle 2