I'm programming an implementation of the Peirce quincuncial map projection. The projection involves a stereographic projection of a hemisphere of the globe onto a circle (I've got that part), then mapping points on that circle onto a square with a conformal mapping.
Wikipedia describes the relationship between a point $(p, \theta)$ on the circle and a point $(x, y)$ on the square as
$$\tan \left( \frac{p}{2} \right) e^{i \theta} = \mathrm{cn} \left( z, \frac{1}{2} \right), \text{ where } z = x + i y.$$
I don't understand the notation $\mathrm{cn} \left( z, \frac{1}{2} \right)$. Can it be written using algebraic and trigonometric functions?
That is, can you rewrite the above like this?
$\tan \left( \frac{p}{2} \right) \cos\theta = $ something in terms of $x$ and $y$
$\tan \left( \frac{p}{2} \right) \sin\theta = $ something in terms of $x$ and $y$
Thanks.
pip install squircle
– Oct 18 '21 at 22:32