Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac #34254: 32-bit failure in src/sage/symbolic/expression.pyx
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Release Manager committed Aug 1, 2022
2 parents 20dea3b + 6ba1084 commit c94df55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/symbolic/expression.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -12878,7 +12878,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
Expand Down

0 comments on commit c94df55

Please sign in to comment.