Ticket #6140: trac-6140-pt2.patch

File trac-6140-pt2.patch, 827 bytes (added by craigcitro, 10 years ago)

apply after spkg and patch above

  • sage/rings/polynomial/polynomial_element.pyx

    # HG changeset patch
    # User Craig Citro <craigcitro@gmail.com>
    # Date 1244612817 25200
    # Node ID 24f8e03034c3c07d6f9eb8c1021a34aa2bf3dcdd
    # Parent  0d48021737eed4d5c5bf789d32e906adcf76ab5e
    Fix minor numerical noise issue with numpy-1.3.0 merge.
    
    diff -r 0d48021737ee -r 24f8e03034c3 sage/rings/polynomial/polynomial_element.pyx
    a b  
    40574057            [(-3.5074662110434039?e451, 1)]
    40584058            sage: p = bigc*x + 1
    40594059            sage: p.roots(ring=RR)
    4060             [(0.000000000000000, 1)]
     4060            [(-0.000000000000000, 1)]
    40614061            sage: p.roots(ring=AA)
    40624062            [(-2.8510609648967059?e-452, 1)]
    40634063            sage: p.roots(ring=QQbar)