I do:

N= 10^8
theta= RDF(2*pi/N)
phi=[i*theta for i in range(0,N)]

not something sophisticated...!

Also: it is not a good idea do do that: better use numpy. BUT

looking at "top" during the computation of
phi=[i*theta for i in range(0,N)],
the memory used jumps to 3Gb and then grows, grows... until it reaches
the limits of my 8GB machine.

python lists are not known to be very efficient, ok. But this is a bit
too much, no ?
yours
t.d.

-- 
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 https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

<<attachment: tdumont.vcf>>

Reply via email to