We already have a relative tolerance check available:
sage: print("0.")# rel tol 1e-4
1.0
sage: print("1.1") # abs tol 1e-5
1.0
David
On Thu, Dec 30, 2021 at 2:42 PM tobia...@gmx.de wrote:
> It would also be an idea to replace these absolute tolerance tests, i.e.
> abs(x - y) < so
It would also be an idea to replace these absolute tolerance tests, i.e.
abs(x - y) < something, by a relative tests abs(x-y)/x < something. In
general, this should be more stable. Such an approach is used by pytest,
see https://docs.pytest.org/en/6.2.x/reference.html#pytest-approx. Maybe
this
I have opened https://trac.sagemath.org/ticket/33099 for this.
On Saturday, December 4, 2021 at 9:08:19 AM UTC-8 Dima Pasechnik wrote:
> One way or another, it's probably a good idea to run the builder on GH
> Actions - translating one yml to another should be doable.
>
>
> On Sat, 4 Dec 2021, 1