Trac#16804 <http://trac.sagemath.org/ticket/16804#ticket> created.
It seems (see second example in the ticket) that pure imaginary (i. e. real(x)==0) are plotted without problem. HTH, -- Emmanuel Charpentier Le mardi 12 août 2014 15:26:34 UTC+2, kcrisman a écrit : > > sage: points(map(lambda x:x[0].N(),(z^20+1).roots()), figsize=4, >> aspect_ratio=1) >> >> >> > These are all "complex". > > > >> >> sage: points(map(lambda x:x[0].N(),(z^20-1).roots()), figsize=4, >> aspect_ratio=1) >> > > map(lambda x:x[0].N(),(z^20-1).roots()) > [0.951056516295154 + 0.309016994374947*I, 0.809016994374947 + > 0.587785252292473*I, 0.587785252292473 + 0.809016994374947*I, > 0.309016994374947 + 0.951056516295154*I, 1.00000000000000*I, > -0.309016994374947 + 0.951056516295154*I, -0.587785252292473 + > 0.809016994374947*I, -0.809016994374947 + 0.587785252292473*I, > -0.951056516295154 + 0.309016994374948*I, -1.00000000000000, > -0.951056516295154 - 0.309016994374948*I, -0.809016994374947 - > 0.587785252292473*I, -0.587785252292473 - 0.809016994374947*I, > -0.309016994374947 - 0.951056516295154*I, -1.00000000000000*I, > 0.309016994374947 - 0.951056516295154*I, 0.587785252292473 - > 0.809016994374947*I, 0.809016994374947 - 0.587785252292473*I, > 0.951056516295154 - 0.309016994374947*I, 1.00000000000000] > > Notice that several are 'imaginary' or 'real'. So point must be getting > confused by this; indeed, > points(map(lambda x:x[0].N(),(z^20-1).roots())[:4], figsize=4, > aspect_ratio=1) > works fine. > > >> Advice ? Ticket to create ? >> >> > Yes, please create a ticket! In the meantime, > > points(map(lambda x:CC(x[0].N()),(z^20-1).roots()), figsize=4, > aspect_ratio=1) > > works nicely, I think. > -- 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.