Ticket #1331 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

[with patch, with positive review] 2.8.14/Solaris: fix complex_double doctest - numerical noise

Reported by: mabshoff Owned by: mabshoff
Priority: major Milestone: sage-2.8.15
Component: doctest coverage Keywords:
Cc: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description (last modified by mabshoff) (diff)

On Solaris I get the following doctest failures due to numerical noise:

sage -t  devel/sage-main/sage/rings/complex_double.pyx      
**********************************************************************
File "complex_double.pyx", line 1496:
    sage: z^2 - z + 1
Expected:
    2.22044604925e-16 + 1.11022302463e-16*I
Got:
    2.22044604925e-16 + 2.22044604925e-16*I

The attached patch fixes that.

Cheers,

Michael

Attachments

Sage-2.8.14-fix-complex_double-doctest-failure-on-Sparc.patch Download (795 bytes) - added by mabshoff 6 years ago.

Change History

comment:1 Changed 6 years ago by mabshoff

  • Status changed from new to assigned

comment:2 Changed 6 years ago by mabshoff

  • Description modified (diff)

comment:3 Changed 6 years ago by cwitty

  • Summary changed from [with patch] 2.8.14/Solaris: fix complex_double doctest - numerical noise to [with patch, with positive review] 2.8.14/Solaris: fix complex_double doctest - numerical noise

We need another approach for this... what if on another machine, the imaginary component is exactly zero?

But let's cross that bridge when we come to it.

Looks good to me.

comment:4 Changed 6 years ago by mabshoff

  • Status changed from assigned to closed
  • Resolution set to fixed

Merged in 2.8.15.alpha0.

Note: See TracTickets for help on using tickets.