Changes between Initial Version and Version 1 of Ticket #26433


Ignore:
Timestamp:
10/08/18 22:32:31 (2 years ago)
Author:
caruso
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26433 – Description

    initial v1  
    22
    33{{{
    4 sage: R = Zp(2)
     4sage: R.<a> = Zq(2^3)
    55sage: S.<x> = R[]
    66sage: P = S.random_element(degree=100)
    7 sage: a = R.random_element()
    8 sage: %timeit _ = P % (x-a)
    9 1000 loops, best of 3: 1.64 ms per loop
    10 sage: %timeit _ = P(a)
    11 10000 loops, best of 3: 81.9 µs per loop
     7sage: t = R.random_element()
     8
     9sage: %timeit _ = P(t)
     1010000 loops, best of 3: 145 µs per loop
     11
     12sage: Q = X - t
     13sage: %timeit _ = P % Q
     141000 loops, best of 3: 1.06 ms per loop
    1215}}}