#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 lftabera):

 I would not say that zero.degree() == -1 is a bug, but a feature.

 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`.

 This method is intended for casual computations with weighted degree or
 with several weighted degrees at one. If the user is going to use heavy
 computations with the same weight on a Singular ring, it is better to set
 up a ring with the appropiated weighted degree as term order. This would
 use Singular internal method.

 I should check, but if I recall correctly, to use Singular inner function
 one has the change the degree of the underlying ring, which is bad.
 Moreover, this patch also work for `MPolynomial_polydict`, not only rings
 mapped to Singular.

--
Ticket URL: <http://trac.sagemath.org/ticket/10716#comment:20>
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