First time here? Check out the FAQ!

Ask Your Question
0

how to write Division command?

asked 12 years ago

Neda gravatar image

updated 12 years ago

Hello could you please tell me how can I compute the remainder on division of the given polynomial f by the order set F using grlex order in sage? thank you

f= x*y^2+x^3*y^2-y+1
F=(x*y^2-x , x-y^3)
Preview: (hide)

Comments

why doesn't any one answer ,Is there something wrong with the question I can fix?

Neda gravatar imageNeda ( 12 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 12 years ago

calc314 gravatar image

Here's a shot at it. You can call some maxima commands.

var('x,y')
maxima('load(grobner)')
maxima('poly_monomial_order:grlex')
F=[x*y^2-x , x-y^3]
ans=maxima('poly_pseudo_divide(x^2*y^2+x^3*y^2-y+1,[x*y^2-x,x-y^3],[x,y])')
print ans
(quo,rem,n,m)=ans
p=quo[0]*F[0]+quo[1]*F[1]+rem
print p
print p.expand()
Preview: (hide)
link

Comments

It was so much helpful, thank you !

Neda gravatar imageNeda ( 12 years ago )

I have a question.. could you please tell me what is "n" and "m" in answer part?

Neda gravatar imageNeda ( 12 years ago )

The results from maxima are described at http://maxima.sourceforge.net/docs/manual/en/maxima_57.html.

calc314 gravatar imagecalc314 ( 12 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: 12 years ago

Seen: 704 times

Last updated: Apr 05 '13