if sqrt is given a negative number, return the real part of the sqrt: 0