Class representing a complex number (re + imj), where j == sqrt(-1). Yes, j, not i, because I'm an electrical engineer, and 'i' stands for current (Ohm's Law: V = IR).
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 θ
Takes the square root, as a Complex number. Works just fine with negative real numbers. Does not interfere with Double.sqrt(x: Double), since the signature is different.