#8987: Add support for rational polyhedral fans
----------------------------------+-----------------------------------------
   Reporter:  novoselt            |       Owner:  mhampton  
       Type:  enhancement         |      Status:  needs_work
   Priority:  major               |   Milestone:  sage-4.4.4
  Component:  geometry            |    Keywords:            
     Author:  Andrey Novoseltsev  |    Upstream:  N/A       
   Reviewer:  Volker Braun        |      Merged:            
Work_issues:                      |  
----------------------------------+-----------------------------------------

Comment(by vbraun):

 Replying to [comment:11 novoselt]:
 > {{{
 > sage: fan(1)[i]
 > }}}
 > will do exactly this, but it will not since `fan(1)` purposefully
 returns the list of rays, rather than one-dimensional cones... Did you
 notice this convention? What do you think of it?

 I've played a bit more with it and I don't understand your comment:
 {{{
 sage: fan = Fan(cones=[(0,1), (1,2)], rays=[(1,0), (0,1), (-1,0),
 (-1,-1)])
 sage: fan(1)
 (1-dimensional cone, 1-dimensional cone, 1-dimensional cone)
 sage: fan(2)
 (2-dimensional cone, 2-dimensional cone)
 sage: type( fan(1)[0] )
 <class 'sage.geometry.fan.Cone_of_fan'>
 sage: type( fan(2)[0] )
 <class 'sage.geometry.fan.Cone_of_fan'>
 }}}
 So `fan(1)` definitely returns the one-cones in the current incarnation...

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8987#comment:14>
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