#10716: Adding a weighted_degree function to Singular multivariate polynomials
-------------------------------------+-------------------------------------
       Reporter:  jsrn               |        Owner:  AlexGhitza
           Type:  enhancement        |       Status:  needs_review
       Priority:  minor              |    Milestone:  sage-6.3
      Component:  algebraic          |   Resolution:
  geometry                           |    Merged in:
       Keywords:  multivariate       |    Reviewers:  Marshall Hampton
  polynomials,degree,Singular        |  Work issues:
        Authors:  Johan S. R.        |       Commit:
  Nielsen, Luis Felipe Tabera        |  1036282f26205edced3fe67a6ba8f5a8969feb59
  Alonso                             |     Stopgaps:
Report Upstream:  N/A                |
         Branch:                     |
  u/lftabera/weighted_degree         |
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by malb):

 Replying to [comment:20 lftabera]:
 > I would not say that zero.degree() == -1 is a bug, but a feature.

 I meant that it is returned as a Python int.

 > The use of `int`s instead of `ZZ` is just for compatibility with the
 current degree method. In both `MPolynomial_libsingular` and
 `MPolynomial_polydict` polynomials the degree returns an `int`.

 `MPolynomial_libsingular` can only represent a total degree `< INT_MAX`,
 as far as I recall. Hence, using int there is fine. However, this function
 accepts a weights array which may contain arbitrary integers. Hence, this
 function can overflow, where  `MPolynomial_libsingular.total_degree()`
 cannot (as far as I can tell).

--
Ticket URL: <http://trac.sagemath.org/ticket/10716#comment:21>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to