Writing polynomial in the generators of a subring
I have a polynomial f∈F[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.