Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure in Singular upon division with remainder for a multivariate polynomial ring over a univariate fraction field #14624

Open
nthiery opened this issue May 21, 2013 · 2 comments

Comments

@nthiery
Copy link
Contributor

nthiery commented May 21, 2013

sage: M = PolynomialRing(QQ['a'].fraction_field(), ['x','y'])
sage: x,y = M.gens()
sage: a = M(M.base_ring().gen())
sage: a.quo_rem(x)
Traceback (most recent call last):
...
/opt/sage-5.10.beta2/local/lib/python2.7/site-packages/sage/interfaces/singular.pyc in eval(self, x, allow_semicolon, strip, **kwds)
    588 
    589         if s.find("error") != -1 or s.find("Segment fault") != -1:
--> 590             raise SingularError('Singular error:\n%s'%s)
    591 
    592         if get_verbose() > 0:

TypeError: Singular error:
   ? division(`number`,`poly`) failed
   ? error occurred in or before STDIN line 101850: `def sage38517=division(sage38515,sage38516);`

CC: @simon-king-jena

Component: commutative algebra

Issue created by migration from https://trac.sagemath.org/ticket/14624

@simon-king-jena
Copy link
Member

comment:2

First question: Why is this operation using the singular pexpect interface, and not libsingular?

Second question: Why is a._singular_init_() returning "a" and not "poly(a)" or so? As a result, we have

sage: M = PolynomialRing(QQ['a'].fraction_field(), ['x','y'])
sage: x,y = M.gens()
sage: a = M(M.base_ring().gen())
sage: singular(a).typeof()
number
sage: singular("a").typeof()
number
sage: singular("poly(a)").typeof()
poly

@simon-king-jena
Copy link
Member

comment:3

I guess we have to look at sage.rings.polynomial.polynomial_singular_interface._singular_init_func, where the use of the string representation without adding "poly(...)" is hardcoded.

@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@mkoeppe mkoeppe removed this from the sage-6.4 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants