|
1 | 1 | # coding: utf-8
|
2 | 2 | """
|
3 |
| -Univariate Polynomial Base Class |
| 3 | +Univariate polynomial base class |
| 4 | +
|
| 5 | +TESTS:: |
| 6 | +
|
| 7 | + sage: R.<x> = ZZ[] |
| 8 | + sage: f = x^5 + 2*x^2 + (-1) |
| 9 | + sage: f == loads(dumps(f)) |
| 10 | + True |
| 11 | +
|
| 12 | + sage: PolynomialRing(ZZ,'x').objgen() |
| 13 | + (Univariate Polynomial Ring in x over Integer Ring, x) |
4 | 14 |
|
5 | 15 | AUTHORS:
|
6 | 16 |
|
7 |
| -- William Stein: first version. |
| 17 | +- William Stein: first version |
8 | 18 |
|
9 |
| -- Martin Albrecht: Added singular coercion. |
| 19 | +- Martin Albrecht: added singular coercion |
10 | 20 |
|
11 |
| -- Robert Bradshaw: Move Polynomial_generic_dense to Cython. |
| 21 | +- Robert Bradshaw: moved Polynomial_generic_dense to Cython |
12 | 22 |
|
13 |
| -- Miguel Marco: Implemented resultant in the case where PARI fails. |
| 23 | +- Miguel Marco: implemented resultant in the case where PARI fails |
14 | 24 |
|
15 |
| -- Simon King: Use a faster way of conversion from the base ring. |
| 25 | +- Simon King: used a faster way of conversion from the base ring |
16 | 26 |
|
17 |
| -- Julian Rueth (2012-05-25,2014-05-09): Fixed is_squarefree() for imperfect |
18 |
| - fields, fixed division without remainder over QQbar; added ``_cache_key`` |
19 |
| - for polynomials with unhashable coefficients |
| 27 | +- Kwankyu Lee (2013-06-02): enhanced :meth:`quo_rem` |
20 | 28 |
|
21 |
| -- Simon King (2013-10): Implement copying of :class:`PolynomialBaseringInjection`. |
| 29 | +- Julian Rueth (2012-05-25,2014-05-09): fixed is_squarefree() for imperfect |
| 30 | + fields, fixed division without remainder over QQbar; added ``_cache_key`` |
| 31 | + for polynomials with unhashable coefficients |
22 | 32 |
|
23 |
| -- Kiran Kedlaya (2016-03): Added root counting. |
| 33 | +- Simon King (2013-10): implemented copying of :class:`PolynomialBaseringInjection` |
24 | 34 |
|
25 |
| -- Edgar Costa (2017-07): Added rational reconstruction. |
| 35 | +- Bruno Grenet (2014-07-13): enhanced :meth:`quo_rem` |
26 | 36 |
|
27 |
| -- Kiran Kedlaya (2017-09): Added reciprocal transform, trace polynomial. |
| 37 | +- Kiran Kedlaya (2016-03): added root counting |
28 | 38 |
|
29 |
| -- David Zureick-Brown (2017-09): Added is_weil_polynomial. |
| 39 | +- Edgar Costa (2017-07): added rational reconstruction |
30 | 40 |
|
31 |
| -- Sebastian Oehms (2018-10): made :meth:`roots` and :meth:`factor` work over more |
32 |
| - cases of proper integral domains (see :trac:`26421`) |
| 41 | +- Kiran Kedlaya (2017-09): added reciprocal transform, trace polynomial |
33 | 42 |
|
34 |
| -TESTS:: |
| 43 | +- David Zureick-Brown (2017-09): added is_weil_polynomial |
35 | 44 |
|
36 |
| - sage: R.<x> = ZZ[] |
37 |
| - sage: f = x^5 + 2*x^2 + (-1) |
38 |
| - sage: f == loads(dumps(f)) |
39 |
| - True |
| 45 | +- Sebastian Oehms (2018-10): made :meth:`roots` and :meth:`factor` work over more |
| 46 | + cases of proper integral domains (see :trac:`26421`) |
40 | 47 |
|
41 |
| - sage: PolynomialRing(ZZ,'x').objgen() |
42 |
| - (Univariate Polynomial Ring in x over Integer Ring, x) |
43 | 48 | """
|
44 | 49 |
|
45 | 50 | # ****************************************************************************
|
@@ -11336,7 +11341,7 @@ cdef class Polynomial_generic_dense(Polynomial):
|
11336 | 11341 | sage: class BrokenRational(Rational):
|
11337 | 11342 | ....: def __bool__(self):
|
11338 | 11343 | ....: raise NotImplementedError("cannot check whether number is non-zero")
|
11339 |
| - ....: |
| 11344 | + ....: |
11340 | 11345 | sage: z = BrokenRational()
|
11341 | 11346 | sage: R.<x> = QQ[]
|
11342 | 11347 | sage: from sage.rings.polynomial.polynomial_element import Polynomial_generic_dense
|
@@ -11636,18 +11641,12 @@ cdef class Polynomial_generic_dense(Polynomial):
|
11636 | 11641 | Raises a ``ZerodivisionError`` if ``other`` is zero. Raises an
|
11637 | 11642 | ``ArithmeticError`` if the division is not exact.
|
11638 | 11643 |
|
11639 |
| - AUTHORS: |
11640 |
| -
|
11641 |
| - - Kwankyu Lee (2013-06-02) |
11642 |
| -
|
11643 |
| - - Bruno Grenet (2014-07-13) |
11644 |
| -
|
11645 | 11644 | EXAMPLES::
|
11646 | 11645 |
|
11647 | 11646 | sage: P.<x> = QQ[]
|
11648 | 11647 | sage: R.<y> = P[]
|
11649 |
| - sage: f = R.random_element(10) |
11650 |
| - sage: g = y^5+R.random_element(4) |
| 11648 | + sage: f = y^10 + R.random_element(9) |
| 11649 | + sage: g = y^5 + R.random_element(4) |
11651 | 11650 | sage: q,r = f.quo_rem(g)
|
11652 | 11651 | sage: f == q*g + r
|
11653 | 11652 | True
|
|
0 commit comments