#21100: division error in normalize_coordinates
-------------------------------------+-------------------------------------
       Reporter:  bhutz              |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  minor              |    Milestone:  sage-7.3
      Component:  algebraic          |   Resolution:
  geometry                           |
       Keywords:                     |    Merged in:
        Authors:  Ben Hutz           |    Reviewers:  Vincent Delecroix
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/bhutz/division_error_in_normalize_coordinates|  
88f76f9966e0df58b539a12205f4fb221972796a
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by vdelecroix):

 Another option seems to flatten the polynomial ring in order to make
 singular happier
 {{{
 sage: R.<a,b> = QQ[]
 sage: P.<x,y,z> = R[]
 sage: p0 = a*(x+y)*x^2
 sage: g = x + y
 sage: p0.quo_rem(g)
 Traceback (most recent call last):
 ...
 TypeError: no conversion of this ring to a Singular ring defined
 sage: Pflat.<x,y,z,a,b> = QQ[]
 sage: p0 = Pflat(str(p0))   # conversion hack ;-)
 sage: g = Pflat(g)
 sage: p0.quo_rem(g)
 (x^2*a, 0)
 }}}

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