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 #23629
Comments
comment:1
Maybe #22333 would fix this issue. |
This comment has been minimized.
This comment has been minimized.
comment:2
To begin, we can simplify this a little bit by taking I don't think that #22333 would fix the issue as I think the conversion is getting confused. Actually, this code block in elif not my_vars[-1] in vars:
x = base_ring(self) if base_ring is not None else self
const_ix = ETuple((0,)*len(vars))
return { const_ix: x } You get into a chicken-and-egg problem of needing to extract out all of your variables from the input I feel like the problem is that the polynomial code that calls this only passes Thus, I think two things need to be fixed. The first is that we should be using Additionally, this "works" however:
because it goes through a slightly different code path. However, the result is wrong:
This result is because it first matches the number of variables and does:
So this may even be considered "correct" behavior, but it is deserving of a sage-devel ask and would be a separate ticket (if considered a bug). |
comment:3
See also #23631. |
fails with a
TypeError
.Component: algebra
Issue created by migration from https://trac.sagemath.org/ticket/23629
The text was updated successfully, but these errors were encountered: