On Monday, July 10, 2017 at 8:55:23 AM UTC+2, vdelecroix wrote:--
He was certainly not using the awfully slow symbolic ring
sage: x,y,z,t,u = SR.var('x,y,z,t,u')
sage: f = (1 + x + y + 2*z^2 + 3*t^3 + 5*u^5)^6
sage: g = (1 + u + t + 2*z^2 + 3*y^3 + 5*x^5)^6
sage: %time h = (f*g).expand()
CPU times: user 8.99 s, sys: 25.7 ms, total: 9.01 s
Wall time: 9.01 s
This is the worng way to test symbolic multiplication, instead:
sage: f = ((1 + x + y + 2*z^2 + 3*t^3 + 5*u^5)^6).expand()
sage: g = ((1 + u + t + 2*z^2 + 3*y^3 + 5*x^5)^6).expand()
sage: %timeit _ = f*g
The slowest run took 9.98 times longer than the fastest. This could mean that an intermediate result is being cached.
1000 loops, best of 3: 1.04 ms per loop
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 firstname.lastname@example.org.
To post to this group, send email to email@example.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.