Maple seems (much) slower than giac on this example
giac:
0>> int(floor(x)^2,x=0..10000);
333283335000
// Time 0.2

maple:
int(floor(x)^2,x=0..10000);                                                 
 
memory used=142.1MB, alloc=150.1MB, time=1.12
memory used=230.5MB, alloc=182.1MB, time=1.81
memory used=267.3MB, alloc=182.1MB, time=2.21
memory used=383.1MB, alloc=215.8MB, time=3.02
memory used=455.8MB, alloc=215.8MB, time=3.59
memory used=519.3MB, alloc=215.8MB, time=4.08
memory used=577.8MB, alloc=215.8MB, time=4.50
memory used=633.2MB, alloc=215.8MB, time=4.91
memory used=685.8MB, alloc=215.8MB, time=5.29
memory used=736.9MB, alloc=215.8MB, time=5.66
memory used=786.5MB, alloc=215.8MB, time=6.07
memory used=834.8MB, alloc=215.8MB, time=6.44
memory used=882.3MB, alloc=215.8MB, time=6.77
memory used=928.9MB, alloc=215.8MB, time=7.12
memory used=974.6MB, alloc=215.8MB, time=7.51
memory used=1019.7MB, alloc=215.8MB, time=7.82
                                 333283335000
On Thursday, February 2, 2023 at 7:03:23 AM UTC+1 Georgi Guninski wrote:

> Thanks. sage appears to be slow on `integrate(floor(x)^2,x,0,n0)`,
> is Maple fast?
>
> Session:
> sage: n0=10^6
> sage: time integrate(floor(x)^2,x,0,n0)
> CPU times: user 6.71 s, sys: 6.32 ms, total: 6.71 s
> Wall time: 6.87 s
> 333332833333500000
> sage: time integrate(x^3+x,x,0,n0)
> CPU times: user 48.6 ms, sys: 2 µs, total: 48.6 ms
> Wall time: 69.8 ms
> 250000000000500000000000
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/d568020d-d120-472d-aa63-31180a6b6932n%40googlegroups.com.

Reply via email to