From 6ba1084fbff2ddfd52ce18a8949cffbb493c444f Mon Sep 17 00:00:00 2001 From: Volker Braun Date: Sun, 31 Jul 2022 18:43:00 +0200 Subject: [PATCH] Use fuzzy zero in doctest --- src/sage/symbolic/expression.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/symbolic/expression.pyx b/src/sage/symbolic/expression.pyx index 56b8caeeb98..50f34aed331 100644 --- a/src/sage/symbolic/expression.pyx +++ b/src/sage/symbolic/expression.pyx @@ -12872,7 +12872,7 @@ cdef class Expression(Expression_abc): sage: x = var('x', domain='real') sage: s = abs((1+I*x)^4) sage: f = s._plot_fast_callable(x) - sage: f(10) == abs((I*10+1)^4) + sage: abs(f(10) - abs((I*10+1)^4)) < 1e-11 True sage: plot(s) Graphics object consisting of 1 graphics primitive