# Code

#### Drawing with geodesic segments in the hyperbolic plane (d3.js)

Click in the box below to place points in the hyperbolic upper half plane. Placing two points then clicking the 'Draw Shape' button will result in a a geodesic segment connecting the two points. Placing three or more points will connect consecutive points using geodesic segments and close the curve by connecting the first and last points.

For example, try clicking

1. twice in the box,
2. '$i\infty$',
3. 'Draw Shape'.

#### Drawing fundamendal domains (mathematica)

Included below are two mathematica notebooks which can be used to draw fundamental domains for the action of certain congruence subgroups on the upper half plane and disk models of two-dimensional hyperbolic space.