Note that the function (2) maps the real axis onto a polygonal path. We now wish to construct a one-to-one analytic function that maps the upper half plane H onto the interior of a given polygon P. The idea is to tailor a Schwarz-Christoffel transformation to achieve this.