#21108: Use flattening in quo_rem
-------------------------+-------------------------------------------------
       Reporter:         |        Owner:
  vdelecroix             |
           Type:         |       Status:  needs_review
  enhancement            |
       Priority:  major  |    Milestone:  sage-7.3
      Component:         |   Resolution:
  algebra                |
       Keywords:         |    Merged in:
        Authors:         |    Reviewers:  Ben Hutz
  Vincent Delecroix      |
Report Upstream:  N/A    |  Work issues:
         Branch:         |       Commit:
  u/bhutz/21108          |  a5931218dac6be179f0338df0e3ce8e4793896c1
   Dependencies:         |     Stopgaps:
  #21106                 |
-------------------------+-------------------------------------------------
Description changed by vdelecroix:

Old description:

> Using the flattening morphism from #21106 we can divide more polynomials!
> With the branch applied the following works
> {{{
> sage: R = QQ['a','b']['c','d']
> sage: R('(a*b+1)*c + c^2').quo_rem(R('c'))
> (c + a*b + 1, 0)
> }}}
> However, will persist a discrepency between `QQ['a']['b']['c']` and
> `QQ['a','b','c']` when the division is not exact.
> {{{
> sage: R1 = QQ['a']['b']['c']
> sage: R2 = QQ['a','b','c']
> sage: R1('a').quo_rem(R1('b'))
> Traceback (most recent call last):
> ...
> ArithmeticError: Division non exact (consider coercing
> to polynomials over the fraction field)
> sage: R2('a').quo_rem(R2('b'))
> (0, a)
> }}}

New description:

 Using the flattening morphism from #21106 we can divide more polynomials!
 With the branch applied the following works
 {{{
 sage: R = QQ['a','b']['c','d']
 sage: R('(a*b+1)*c + c^2').quo_rem(R('c'))
 (c + a*b + 1, 0)
 }}}
 However, will persist a discrepency between `QQ['a']['b']['c']` and
 `QQ['a','b','c']` when the division is not exact.
 {{{
 sage: R1 = QQ['a']['b']['c']
 sage: R2 = QQ['a','b','c']
 sage: R1('a').quo_rem(R1('b'))
 Traceback (most recent call last):
 ...
 ArithmeticError: Division non exact (consider coercing
 to polynomials over the fraction field)
 sage: R2('a').quo_rem(R2('b'))
 (0, a)
 }}}
 See [https://groups.google.com/forum/#!topic/sage-devel/CDLCb6OX4ns this
 sage-devel thread].

--

--
Ticket URL: <https://trac.sagemath.org/ticket/21108#comment:6>
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