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

Return explicit polynomial in .in_subalgebra #39225

Open
1 task done
schcs opened this issue Dec 29, 2024 · 1 comment
Open
1 task done

Return explicit polynomial in .in_subalgebra #39225

schcs opened this issue Dec 29, 2024 · 1 comment

Comments

@schcs
Copy link

schcs commented Dec 29, 2024

Problem Description

Given a polynomial f∈𝔽[x1,…,xn] which is an element of the subalgebra generated by f1,…,fk, calling f.in_subalgebra([f1,...,fk]) should returnh(t1,…,tk)such that f=h(f1,…,fk). I believe that this would be a useful feature.

Proposed Solution

The method is implemented in sage/src/sage/rings/polynomial/multi_polynomial_libsingular.pyx. When algorithm = "groebner" is chosen, the polynomial z should be returned together with True. In case of False, 0 can be returned.

Alternatives Considered

I'm not sure about feasible alternatives.

Additional Information

No response

Is there an existing issue for this?

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
@user202729
Copy link
Contributor

user202729 commented Dec 30, 2024

This is already possible as follows

sage: R.<x> = QQ[]
sage: S.<y> = QQ[]
sage: S.hom([x^2]).inverse_image(x^4)
y^2

(performance improvement might be possible)

On an unrelated note, for some reason the following is not implemented

x^4 in S.hom([x^2]).image()

@fchapoton fchapoton changed the title <title>Return explicit polynomial in .in_subalgebra</title> Return explicit polynomial in .in_subalgebra Dec 30, 2024
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

2 participants