PROJECT EULER · #0972
Hyperbolic Plane
The hyperbolic plane can be represented by the open unit disc, namely the set of points
A geodesic is defined as either a diameter of the open unit disc or a circular arc contained within the disc that is orthogonal to the boundary of the disc.
The following diagram shows the hyperbolic plane with two geodesics; one is a diameter and the other is a circular arc.

Let
Let
For example,
Find
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.