sqrt(0) should return 0 not throw an exception