expITheta

fun expITheta(theta: Double): Complex

Turns the (radian) angle theta into the complex number at that angle, with unit magnitude. Thanks to Leonhard Euler for discovering this property: e^(jθ) = cos θ + j sin θ