Skip to content

Commit c94df55

Browse files
author
Release Manager
committed
Trac #34254: 32-bit failure in src/sage/symbolic/expression.pyx
Possibly caused by the Singular to 4.3.1 update {{{ sage -t --random-seed=210332952936240496895287497988069989916 src/sage/symbolic/expression.pyx ********************************************************************** File "src/sage/symbolic/expression.pyx", line 12881, in sage.symbolic.expression.Expression._plot_fast_callable Failed example: f(10) == abs((I*10+1)^4) Expected: True Got: False ********************************************************************** 1 item had failures: 1 of 9 in sage.symbolic.expression.Expression._plot_fast_callable [3072 tests, 1 failure, 39.49 s] ---------------------------------------------------------------------- sage -t --random-seed=210332952936240496895287497988069989916 src/sage/symbolic/expression.pyx # 1 doctest failed ---------------------------------------------------------------------- }}} Apparently numerical noise: {{{ sage: x = var('x', domain='real') ....: s = abs((1+I*x)^4) ....: f = s._plot_fast_callable(x) ....: f(10) == abs((I*10+1)^4) ....: False sage: f(10) 10200.999999999998 sage: abs((I*10+1)^4) ....: 10201 }}} URL: https://trac.sagemath.org/34254 Reported by: vbraun Ticket author(s): Volker Braun Reviewer(s): Matthias Koeppe
2 parents 20dea3b + 6ba1084 commit c94df55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/symbolic/expression.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12878,7 +12878,7 @@ cdef class Expression(Expression_abc):
1287812878
sage: x = var('x', domain='real')
1287912879
sage: s = abs((1+I*x)^4)
1288012880
sage: f = s._plot_fast_callable(x)
12881-
sage: f(10) == abs((I*10+1)^4)
12881+
sage: abs(f(10) - abs((I*10+1)^4)) < 1e-11
1288212882
True
1288312883
sage: plot(s)
1288412884
Graphics object consisting of 1 graphics primitive

0 commit comments

Comments
 (0)