Restricting parent of polynomial to a subring #3074
Answered
by
wdecker
oskarhenriksson
asked this question in
Q&A
-
Suppose I have a polynomial Is there a way create a new polynomial (This would be analogous to how Example:
|
Beta Was this translation helpful? Give feedback.
Answered by
wdecker
Dec 7, 2023
Replies: 1 comment 2 replies
-
On Wed, Dec 06, 2023 at 11:08:27AM -0800, Oskar Henriksson wrote:
Suppose I have a polynomial $f\in k[x,y,z]$ such that all nonzero terms involve only the variables $x$ and $y$.
Is there a way to modify $f$ so that its parent ring instead becomes $k[x,y]$? (This would be a bit like how the `to_univariate` function works.)
**Example:**
```
R, (x,y,z) = polynomial_ring(QQ,["x","y","z"])
f = x^2+y^2+1
```
Well....
S, (x,y) = polynomial_ring(QQ,["x","y","z"])
z = Oscar.MPolyHom_vars{typeof(S), typeof(R)}(S, R, type = :names)
preimage(z, f)
could be improved....
z is a map from S to R mapping vaiables to vaiables with the same name.
The actual mapping is efficient.
…
--
Reply to this email directly or view it on GitHub:
#3074
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
R, (x,y,z) = polynomial_ring(QQ,["x","y","z"])
f = x^2+y^2+1
S, (x,y) = polynomial_ring(QQ,["x","y"])
phi = hom(R, S, [x, y, 0])
f =phi(f)