Skip to content

Commit 3688c18

Browse files
committed
Minor style changes
1 parent 88be79d commit 3688c18

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/sage/rings/polynomial/multi_polynomial.pyx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ r"""
22
Base class for elements of multivariate polynomial rings
33
"""
44

5-
#*****************************************************************************
5+
# ********************************************************************
6+
# Copyright (C) 2005 William Stein <[email protected]>
7+
#
68
# This program is free software: you can redistribute it and/or modify
79
# it under the terms of the GNU General Public License as published by
810
# the Free Software Foundation, either version 2 of the License, or
911
# (at your option) any later version.
1012
# https://www.gnu.org/licenses/
11-
#*****************************************************************************
13+
# ********************************************************************
1214

1315
from sage.rings.integer cimport Integer
1416
from sage.rings.integer_ring import ZZ
@@ -33,9 +35,9 @@ from sage.rings.polynomial.polynomial_element cimport Polynomial
3335

3436
cdef class MPolynomial(CommutativePolynomial):
3537

36-
####################
38+
# -------------------------
3739
# Some standard conversions
38-
####################
40+
# -------------------------
3941
def _scalar_conversion(self, R):
4042
r"""
4143
TESTS::
@@ -360,7 +362,6 @@ cdef class MPolynomial(CommutativePolynomial):
360362
"""
361363
return multi_derivative(self, args)
362364

363-
364365
def polynomial(self, var):
365366
r"""
366367
Let ``var`` be one of the variables of the parent of ``self``. This

src/sage/rings/polynomial/multi_polynomial_libsingular.pyx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,15 @@ AUTHORS:
149149
150150
"""
151151

152-
#*****************************************************************************
152+
# ********************************************************************
153+
# Copyright (C) 2005 William Stein <[email protected]>
154+
#
153155
# This program is free software: you can redistribute it and/or modify
154156
# it under the terms of the GNU General Public License as published by
155157
# the Free Software Foundation, either version 2 of the License, or
156158
# (at your option) any later version.
157-
# http://www.gnu.org/licenses/
158-
#*****************************************************************************
159+
# https://www.gnu.org/licenses/
160+
# ********************************************************************
159161

160162
# The Singular API is as follows:
161163
#
@@ -1530,9 +1532,9 @@ cdef class MPolynomialRing_libsingular(MPolynomialRing_base):
15301532

15311533
return old
15321534

1533-
### The following methods are handy for implementing Groebner
1534-
### basis algorithms. They do only superficial type/sanity checks
1535-
### and should be called carefully.
1535+
# The following methods are handy for implementing Groebner
1536+
# basis algorithms. They do only superficial type/sanity checks
1537+
# and should be called carefully.
15361538

15371539
def monomial_quotient(self, MPolynomial_libsingular f, MPolynomial_libsingular g, coeff=False):
15381540
r"""
@@ -1677,7 +1679,6 @@ cdef class MPolynomialRing_libsingular(MPolynomialRing_base):
16771679
else:
16781680
return True
16791681

1680-
16811682
def monomial_lcm(self, MPolynomial_libsingular f, MPolynomial_libsingular g):
16821683
"""
16831684
LCM for monomials. Coefficients are ignored.
@@ -5242,7 +5243,6 @@ cdef class MPolynomial_libsingular(MPolynomial_libsingular_base):
52425243
y += base_map(c)*mul([ im_gens[i]**m[i] for i in range(n) if m[i]])
52435244
return y
52445245

5245-
52465246
def _derivative(self, MPolynomial_libsingular var):
52475247
"""
52485248
Differentiates this polynomial with respect to the provided
@@ -5694,7 +5694,6 @@ cdef class MPolynomial_libsingular(MPolynomial_libsingular_base):
56945694
i.append( new_MP(self._parent, pDiff(self._poly, k)))
56955695
return i
56965696

5697-
56985697
def numerator(self):
56995698
"""
57005699
Return a numerator of self computed as self * self.denominator()

0 commit comments

Comments
 (0)