On Mon, Jan 19, 2015 at 10:32 AM, Nils Bruin <nbr...@sfu.ca> wrote:
> On Monday, January 19, 2015 at 9:46:47 AM UTC-8, Ralf Stephan wrote:
>>>
>>> What is "here"?
>>
>>
>> AMD Phenom 3GHz, 8GB RAM, no other big jobs
>
>
> On Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz I'm getting the same times as
> Vincent. That's on 6.5beta4 or 5.
>
> The difference you're reporting is very large. You might want to check your
> sage build. Or otherwise sell your timing results to Intel to finance the
> purchase of another computer.

Nils, did you specifically try this **exact input**??

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
>
>
>  Yes, I would expect that SR is *much* slower for computing in Q(sqrt(3))
> than PARI is:
>
> sage: K.<sqrt3> = QuadraticField(3)
> sage: s=sqrt(3)
> sage: %timeit (sqrt3+1)^25
> 100000 loops, best of 3: 5.32 µs per loop
> sage: %timeit ((s+1)^25).expand()
> 100 loops, best of 3: 5.85 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 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.



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
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.

Reply via email to