Ticket #9958: trac_9958-e_one_star.patch

File trac_9958-e_one_star.patch, 985 bytes (added by fbissey, 10 years ago)

fix numerical noise in e_one_star.py

  • sage/combinat/e_one_star.py

    # HG changeset patch
    # User Francois Bissey <francois.bissey@canterbury.ac.nz>
    # Date 1314328276 -43200
    # Node ID 1df61ab2208c3e1762540fadc0852c70c0408a77
    # Parent  a48af224839e4eb2555175d15d703ecd81d0b4c1
    trac #9958 fix numerical noise in e_one_star.py
    
    diff --git a/sage/combinat/e_one_star.py b/sage/combinat/e_one_star.py
    a b  
    10851085            sage: P = Patch([Face((0,0,0),t,color) for t in [1,2,3]])
    10861086            sage: P.repaint([(0.9, 0.9, 0.9), (0.65,0.65,0.65), (0.4,0.4,0.4)])
    10871087            sage: for f in P: f.color()
    1088             RGB color (0.9000..., 0.9000..., 0.9000...)
    1089             RGB color (0.6500..., 0.6500..., 0.6500...)
    1090             RGB color (0.4000..., 0.4000..., 0.4000...)
     1088            RGB color (0.9, 0.9, 0.9)
     1089            RGB color (0.65, 0.65, 0.65)
     1090            RGB color (0.4, 0.4, 0.4)
    10911091
    10921092        Using a dictionary to color faces according to their type::
    10931093