Ask Your Question
0

Polynomial command

asked 2013-04-04 08:12:47 +0100

Neda gravatar image

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

edit retag flag offensive close merge delete

Comments

2

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

vdelecroix gravatar imagevdelecroix ( 2013-04-04 08:18:12 +0100 )edit

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.

Neda gravatar imageNeda ( 2013-04-04 09:03:46 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-04-15 08:30:32 +0100

slelievre gravatar image

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
edit flag offensive delete link more

Comments

sorry,it was my mistake, it was supposed to be x*y^2.. thank you for helping

Neda gravatar imageNeda ( 2013-04-15 14:02:58 +0100 )edit

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: 2013-04-04 08:12:47 +0100

Seen: 394 times

Last updated: Apr 15 '13