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

conversion in multivariate polynomial ring fails #27255

Open
dkrenn opened this issue Feb 11, 2019 · 4 comments
Open

conversion in multivariate polynomial ring fails #27255

dkrenn opened this issue Feb 11, 2019 · 4 comments

Comments

@dkrenn
Copy link
Contributor

dkrenn commented Feb 11, 2019

Trying to "group" the coefficients like

sage: P.<a, b, n> = QQ[]
sage: N = PolynomialRing(QQ, 'n')
sage: AB = PolynomialRing(N, 'a, b')
sage: AB(a*n + a*n^2)

fails with

TypeError: not a constant polynomial

but the result should be

(n + n^2)*a

As an interesting side note, the Laurent polynomial ring can do it:

sage: L = LaurentPolynomialRing(QQ, 'a, b, n')
sage: LN = LaurentPolynomialRing(QQ, 'n')
sage: LAB = LaurentPolynomialRing(LN, 'a, b')
sage: LAB(L(a*n + a*n^2))
(n + n^2)*a

The Laurent polynomial ring can do this since #21855. And #22333 is about reusing this code, so there is a good chance that #22333 fixes this as well.

Depends on #22333

Component: algebra

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

@dkrenn dkrenn added this to the sage-8.7 milestone Feb 11, 2019
@jdemeyer
Copy link

comment:2

This might be fixed by #25558 (which is work in progress).

@embray
Copy link
Contributor

embray commented Mar 25, 2019

comment:3

Ticket retargeted after milestone closed (if you don't believe this ticket is appropriate for the Sage 8.8 release please retarget manually)

@embray embray modified the milestones: sage-8.7, sage-8.8 Mar 25, 2019
@embray
Copy link
Contributor

embray commented Jun 14, 2019

comment:4

As the Sage-8.8 release milestone is pending, we should delete the sage-8.8 milestone for tickets that are not actively being worked on or that still require significant work to move forward. If you feel that this ticket should be included in the next Sage release at the soonest please set its milestone to the next release milestone (sage-8.9).

@embray embray removed this from the sage-8.8 milestone Jun 14, 2019
@dkrenn
Copy link
Contributor Author

dkrenn commented Jul 6, 2023

Bug still in 10.0

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

3 participants