diff --git a/src/sage/rings/polynomial/polynomial_template.pxi b/src/sage/rings/polynomial/polynomial_template.pxi index 27c806f7e6b..436df32923c 100644 --- a/src/sage/rings/polynomial/polynomial_template.pxi +++ b/src/sage/rings/polynomial/polynomial_template.pxi @@ -1,11 +1,15 @@ """ Polynomial Template for C/C++ Library Interfaces """ + #***************************************************************************** # Copyright (C) 2008 Martin Albrecht # Copyright (C) 2008 Robert Bradshaw # -# Distributed under the terms of the GNU General Public License (GPL) +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. # http://www.gnu.org/licenses/ #***************************************************************************** @@ -410,13 +414,25 @@ cdef class Polynomial_template(Polynomial): cpdef RingElement _floordiv_(self, RingElement right): """ - EXAMPLE:: + EXAMPLES:: sage: P. = GF(2)[] sage: x//(x + 1) 1 sage: (x + 1)//x 1 + sage: F = GF(47) + sage: R. = F[] + sage: x // 1 + x + sage: x // F(1) + x + sage: 1 // x + 0 + sage: parent(x // 1) + Univariate Polynomial Ring in x over Finite Field of size 47 + sage: parent(1 // x) + Univariate Polynomial Ring in x over Finite Field of size 47 """ cdef Polynomial_template _right = right