Skip to content

Minor test failure on Cygwin in ComplexDoubleElement._pow_ #27461

@embray

Description

@embray

Since #27222 I get the following tiny failure on Cygwin:

sage -t --long src/sage/rings/complex_double.pyx
**********************************************************************
File "src/sage/rings/complex_double.pyx", line 1642, in sage.rings.complex_double.ComplexDoubleElement._pow_
Failed example:
    (-2) ^ CDF(-0.5)
Expected:
    4.329780281177467e-17 - 0.7071067811865476*I
Got:
    4.329780281177466e-17 - 0.7071067811865475*I
**********************************************************************
1 item had failures:
   1 of  19 in sage.rings.complex_double.ComplexDoubleElement._pow_
    [331 tests, 1 failure, 2.42 s]

That is, it's just off in the representation of the last decimal place. I wish I could explain exactly where the difference comes from, but I think for this test it should suffice to just add a tolerance flag.

CC: @jdemeyer

Component: porting: Cygwin

Author: Erik Bray

Branch/Commit: 5a0f13d

Reviewer: Volker Braun

Issue created by migration from https://trac.sagemath.org/ticket/27461

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions