#10716: Adding a weighted_degree function to Singular multivariate polynomials
----------------------------------+-----------------------------------------
   Reporter:  jsrn                |          Owner:  AlexGhitza                 
             
       Type:  enhancement         |         Status:  needs_review               
             
   Priority:  minor               |      Milestone:                             
             
  Component:  algebraic geometry  |       Keywords:  multivariate 
polynomials,degree,Singular
Work_issues:                      |       Upstream:  N/A                        
             
   Reviewer:  Marshall Hampton    |         Author:  Johan S. R. Nielsen        
             
     Merged:                      |   Dependencies:                             
             
----------------------------------+-----------------------------------------

Comment(by john_perry):

 Is there a reason you convert everything to vectors & use a dot_product?
 Seeing the concerns about performance -- is type conversion less expensive
 than calling prod() or something similar? I don't know about Cython, but
 my impression is that in some languages it would be more efficient to
 assume you have an iterable & just iterate.

 FWIW, this functionality is available in Sage 4.7:
 {{{
 sage: R.<x,y,z> = GF(7)[]
 sage: p = x^3 + y + x*z^2
 sage: p.degree()
 3
 sage: P = PolynomialRing(GF(7),'x,y,z',
 ....: order=TermOrder(matrix([1,4,2,1,1,0,1,0,0])))
 sage: q = P(p)
 sage: q.degree()
 4
 }}}
 The relevant code is in sage/libs/singular/polynomial.pyx, where
 singular_polynomial_deg manually changes the ring of `p` if it isn't equal
 to ring it has at first.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10716#comment:9>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to