Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question
1

Writing polynomial in the generators of a subring

asked 0 years ago

schcs gravatar image

updated 0 years ago

I have a polynomial fF[x1,,xn] and I know that it is an element of the subalgebra generated by f1,,fk. In fact, I can confirm this with f.in_subalgebra. However, I'd like the actual expression h(t1,,tk) such that f=h(f1,,fk). I know that the Groebner basis method should produce such h.

I'd like to know if there is a ready-to-use functionality in Sage to produce h.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 0 years ago

Max Alekseyev gravatar image

updated 0 years ago

You can just borrow the code from in_subalgebra(algorithm="groebner"). It does compute the required polynomial (called z in the code), but does not return it.

Preview: (hide)
link

Comments

Many thanks. I feel that in future releases, it could be good to return the polynomial z also, since it might be useful for other users.

schcs gravatar imageschcs ( 0 years ago )

@schcs: please submit a feature request at https://github.com/sagemath/sage/issues

Max Alekseyev gravatar imageMax Alekseyev ( 0 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 0 years ago

Seen: 71 times

Last updated: Dec 22 '24