How to compute the square root of a complex number
( go to the article → https://www.johndcook.com/blog/2020/06/09/complex-square-root/ )
Suppose you’re given a complex number z = x + iy and you want to find a complex number w = u + iv such that w² = z. If all goes well, you can compute w as follows: ℓ = √(x² + y²) u = √((ℓ + x)/2) v = sign(y) √((ℓ – x)/2). […]
June 9, 2020, 12:37 p.m.