#12812: Bug in summation of toric divisors
----------------------------------+-----------------------------------------
   Reporter:  novoselt            |             Owner:  AlexGhitza
       Type:  defect              |            Status:  new       
   Priority:  major               |         Milestone:  sage-5.0  
  Component:  algebraic geometry  |          Keywords:            
Work issues:                      |   Report Upstream:  N/A       
  Reviewers:                      |           Authors:            
  Merged in:                      |      Dependencies:            
   Stopgaps:                      |  
----------------------------------+-----------------------------------------
 Here is the problem:
 {{{
 sage: P1 = toric_varieties.P1()
 sage: print sum([P1.divisor(1)])
 V(s) + V(t)
 }}}
 Which I think comes from
 {{{
 sage: print P1.divisor(1).parent()(0)
 V(s)
 }}}
 Perhaps, we can allow creation of divisors by indices of rays/variables,
 but only in the form `P1.divisor(0)`? Since zero in the group of divisors
 should be just zero and other integers don't really make sense.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12812>
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