#9788: The coordinates appearing in the output of variety(L) should be easier to
access
-----------------------------------+----------------------------------------
   Reporter:  mmezzarobba          |       Owner:  malb      
       Type:  enhancement          |      Status:  new       
   Priority:  minor                |   Milestone:  sage-4.5.3
  Component:  commutative algebra  |    Keywords:            
     Author:                       |    Upstream:  N/A       
   Reviewer:                       |      Merged:            
Work_issues:                       |  
-----------------------------------+----------------------------------------
 When computing the variety over an extension field L of a zero-dimensional
 ideal of some polynomial ring K[vars], each point of the variety is
 returned as a dictionary whose keys are generators of L[vars]. It would be
 more practical to have the keys be either generators of K[vars] or plain
 strings.

 {{{
 sage: R.<x,y> = QQ[]
 sage: J = (x+y, x^2+y^2-1)*R
 sage: V = J.variety(QQbar); V
 [{y: -0.7071067811865475?, x: 0.7071067811865475?}, {y:
 0.7071067811865475?, x: -0.7071067811865475?}]
 sage: V[0][x]
 ---------------------------------------------------------------------------
 KeyError                                  Traceback (most recent call
 last)

 /data/sage-4.5.1/<ipython console> in <module>()

 KeyError: x
 sage: V[0]['x']
 ---------------------------------------------------------------------------
 KeyError                                  Traceback (most recent call
 last)

 /data/sage-4.5.1/<ipython console> in <module>()

 KeyError: 'x'
 sage: V[0][QQbar['x,y'].0]
 0.7071067811865475?
 }}}

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