# Polynomial command

Hello How can I write a polynomial such as f(x^2-4,x^2-2*x) in sage?

Polynomial command

Hello How can I write a polynomial such as f(x^2-4,x^2-2*x) in sage?

1

Not sure what `x^y^2`

was supposed to be in your polynomial `f`

.
Anyway, try something like this.

```
sage: R.<x,y> = PolynomialRing(ZZ, order='deglex')
sage: f = x^5 * y^2 + x^3 * y^2 - y + 1
sage: F = (x * y^2 - x, x - y^3)
sage: f.reduce(F)
x^5 + x^3 - y + 1
```

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

Asked: ** 2013-04-04 08:12:47 +0200 **

Seen: **187 times**

Last updated: **Apr 15 '13**

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.

What do you mean ? You have a polynomial of two variables and you want to substitute a polynomial in x for each variable ?

I have a polynomial f= x^*y^2+x^3*y^2-y+1 and I want to compute the remainder on division of the given polynomial f by the order set F using grlex order ,but F is F=(x*y^2-x,x-y^3) that has two part, I don't know how to introduce F in sage for division algorithm.