From 73a928a6c9c35b0553d3ae231944173edd22819f Mon Sep 17 00:00:00 2001 From: Marc Mezzarobba Date: Fri, 13 Nov 2015 14:21:45 +0100 Subject: [PATCH] real_ball: one more instance of [non]zero -> True/False --- src/sage/rings/real_arb.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sage/rings/real_arb.pyx b/src/sage/rings/real_arb.pyx index 0736d7f3b6c..826f9a8f25d 100644 --- a/src/sage/rings/real_arb.pyx +++ b/src/sage/rings/real_arb.pyx @@ -2152,10 +2152,10 @@ cdef class RealBall(RingElement): Return ``True`` *iff* the given number (or ball) ``other`` is contained in the interval represented by ``self``. - If ``self`` contains NaN, this function always returns nonzero (as + If ``self`` contains NaN, this function always returns ``True`` (as it could represent anything, and in particular could represent all the points included in ``other``). If ``other`` contains NaN and ``self`` - does not, it always returns zero. + does not, it always returns ``False``. Use ``other in self`` for a test that works for a wider range of inputs but may return false negatives.