Possible Duplicate:
How do I get the square root of a complex number?
I'm currently playing with complex numbers and I realized that I don't understand how to compute $\sqrt{i + 1}$. My math program, sage, returns
$$1.09868411346781 + 0.455089860562227*i$$
How does sage compute that number? I don't even see how one could rewrite $\sqrt{i + 1}$ in a number of the form $a+bi$.