the adobe file link explains why the i is in the code. The line with the i has a lot of math behind it and is pretty complicated to come up with.

You could always use the regular square root it only uses about 70 clock cycles. Just dont call it a ton of times.