<https://lh5.googleusercontent.com/-aq8_egCY1YQ/U-oLHGBqs8I/AAAAAAAAAPU/_9nUTzYdSV4/s1600/tmp_HT3Lpm.png>

This I don't understand :

sage: var("z")
z
sage: points(map(lambda x:x[0].N(),(z^20+1).roots()), figsize=4, 
aspect_ratio=1) 

[ Gives the expected result (enclosed) ]



sage: points(map(lambda x:x[0].N(),(z^20-1).roots()), figsize=4, 
aspect_ratio=1)
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-8-9d1343466bbc> in <module>()
----> 1 points(map(lambda 
x:x[Integer(0)].N(),(z**Integer(20)-Integer(1)).roots()), 
figsize=Integer(4), aspect_ratio=Integer(1))

/usr/local/sage-6.3/local/lib/python2.7/site-packages/sage/plot/point.pyc 
in point(points, **kwds)
    312     except (ValueError, TypeError):
    313         from sage.plot.plot3d.shapes2 import point3d
--> 314         return point3d(points, **kwds)
    315 
    316 @rename_keyword(color='rgbcolor', pointsize='size')

/usr/local/sage-6.3/local/lib/python2.7/site-packages/sage/plot/plot3d/shapes2.pyc
 
in point3d(v, size, **kwds)
   1042             pass
   1043 
-> 1044     A = sum([Point(z, size, **kwds) for z in v])
   1045     A._set_extra_kwds(kwds)
   1046     return A

/usr/local/sage-6.3/local/lib/python2.7/site-packages/sage/plot/plot3d/shapes2.pyc
 
in __init__(self, center, size, **kwds)
    684         """
    685         PrimitiveObject.__init__(self, **kwds)
--> 686         self.loc = (float(center[0]), float(center[1]), 
float(center[2]))
    687         self.size = size
    688         self._set_extra_kwds(kwds)

/usr/local/sage-6.3/local/lib/python2.7/site-packages/sage/rings/complex_number.so
 
in sage.rings.complex_number.ComplexNumber.__getitem__ 
(build/cythonized/sage/rings/complex_number.c:5225)()

IndexError: i must be between 0 and 1.

Seems to be a problem with points().

Advice ? Ticket to create ?

HTH,

--
Emmanuel Charpentier

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to