throw error on negative numbers passed to Sqrt