#13736: add content method to symbolic expressions
---------------------------------+------------------------------------------
       Reporter:  burcin         |         Owner:  burcin      
           Type:  enhancement    |        Status:  needs_review
       Priority:  major          |     Milestone:  sage-5.10   
      Component:  symbolics      |    Resolution:              
       Keywords:                 |   Work issues:              
Report Upstream:  N/A            |     Reviewers:              
        Authors:  Burcin Erocal  |     Merged in:              
   Dependencies:                 |      Stopgaps:              
---------------------------------+------------------------------------------

Comment (by vbraun):

 It would be less confusing if we also wrap GiNaC unit and primpart and
 copy in some of the documentation
 {{{
 The methods

      ex ex::unit(const ex & x);
      ex ex::content(const ex & x);
      ex ex::primpart(const ex & x);
      ex ex::primpart(const ex & x, const ex & c);

 return the unit part, content part, and primitive polynomial of a
 multivariate polynomial with respect to the variable ‘x’ (the
 unit part being the sign of the leading coefficient, the content
 part being the GCD of the coefficients, and the primitive
 polynomial being the input polynomial divided by the unit and
 content parts). The second variant of primpart() expects the
 previously calculated content part of the polynomial in c, which
 enables it to work faster in the case where the content part has
 already been computed. The product of unit, content, and
 primitive part is the original polynomial.
 }}}
 This is `FactorTermsList[poly, x]` in Mathematica, so perhaps we can have
 a non-underscore method that returns all three?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13736#comment:8>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to