#20889: truncated power for polynomials
-------------------------------------+-------------------------------------
       Reporter:  vdelecroix         |        Owner:
           Type:  enhancement        |       Status:  positive_review
       Priority:  major              |    Milestone:  sage-7.3
      Component:  algebra            |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Vincent Delecroix  |    Reviewers:  Bruno Grenet
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/vdelecroix/20889                 |  d7d124e53af86ddf8b29f404f5b1b92ef42e7f61
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by bruno):

 * status:  needs_review => positive_review
 * reviewer:   => Bruno Grenet


Comment:

 Replying to [comment:14 vdelecroix] & [comment:15 vdelecroix]:
 > I see. You mean for `prec`. As in your example, this would only be
 interesting for sparse polynomials. Note that it will not work at all for
 dense polynomials because `truncate` is defined as `cpdef Polynomial
 truncate(self, long prec)`. I don't mind changing the generic method to
 handle this case.

 >  I can not change `long -> Integer` for `prec`. The reason is that
 `truncate` (for both dense and sparse polynomials) is declared as `cpdef
 truncate(self, long n)`.

 For dense polynomials, this makes sense because of the size of the
 representation. For sparse polynomials, I think this is a problem and I
 encountered it several times: For sparse polynomials to have an interest,
 one should not bound their degree. But anyway, this is not the purpose of
 this ticket.

--
Ticket URL: <https://trac.sagemath.org/ticket/20889#comment:16>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to