> > What is "here"? > AMD Phenom 3GHz, 8GB RAM, no other big jobs
Since that expression is large, the cache size of the CPU might > significantly impact performance. Wouldn't that affect any of the following? │ Sage Version 6.5.beta5, Release Date: 2015-01-05 │ │ Type "notebook()" for the browser-based notebook interface. │ │ Type "help()" for help. │ └────────────────────────────────────────────────────────────────────┘ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Warning: this is a prerelease version, and it may be unstable. ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ sage: K.<sqrt3> = QuadraticField(3) sage: R.<a1,a2,a3,a4,a5> = K[] sage: timeit("(a1+a2+a3+a4+sqrt3*a5)^25") 5 loops, best of 3: 140 ms per loop sage: a1,a2,a3,a4,a5=var('a1,a2,a3,a4,a5') sage: timeit("ex=expand((a1+a2+a3+a4+sqrt(3)*a5)^25)") 5 loops, best of 3: 5.29 s per loop I was wrong in the poly(SR) case. That's even slower than SR.expand(): sage: R.<a1,a2,a3,a4,a5> = PolynomialRing(SR, 'a1,a2,a3,a4,a5') sage: %time p=(a1+a2+a3+a4+sqrt(3)*a5)^25 stopped after a minute -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.