#9926: Doctest error in sage/schemes/generic/toric_divisor.py on OS X
-----------------------+----------------------------------------------------
   Reporter:  mpatel   |       Owner:  mvngu   
       Type:  defect   |      Status:  new     
   Priority:  blocker  |   Milestone:  sage-4.6
  Component:  doctest  |    Keywords:          
     Author:           |    Upstream:  N/A     
   Reviewer:           |      Merged:          
Work_issues:           |  
-----------------------+----------------------------------------------------

Comment(by vbraun):

 I think the problem is that `cddlib` uses `rand()` to sometimes make
 random initial choices while searching for generating sets. Although
 `cddlib` fixes the seed, there is no guarantee that different platforms
 implement `rand()` in the same way.

 To make sure this is indeed the problem, can you run
 {{{
 sage: Polyhedron(vertices=[(0, 1), (1, 1), (0, 1), (-1, 1), (0, 2), (0,
 -1), (0, 0), (0, 0), (3, -1), (0, 2), (0, -1), (1, -1), (0, 0)],
 verbose=True)
 V-representation
 begin
  13 3 rational
  1 0 1
  1 1 1
  1 0 1
  1 -1 1
  1 0 2
  1 0 -1
  1 0 0
  1 0 0
  1 3 -1
  1 0 2
  1 0 -1
  1 1 -1
  1 0 0
 end

 V-representation
 begin
  4 3 rational
  1 -1 1
  1 0 2
  1 0 -1
  1 3 -1
 end

 H-representation
 begin
  4 3 rational
  2 1 -1
  1 2 1
  1 0 1
  2 -1 -1
 end
 A 2-dimensional polyhedron in QQ^2 defined as the convex hull of 4
 vertices.
 }}}
 on the OSX machine and paste the output? I can then rip out the `rand()`
 from the `cddlib.spkg`...

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9926#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to