sqrt(-1+i) code example Example 1: sqrt(-1) sqrt(-1) returns i Example 2: sqrt(i) sqrt(i) = i*sqrt(0.5)+sqrt(0.5)