Use math.sqrt.  It's much less hacky and exactly what we want.