Ask Your Question
0

how to write Division command?

asked 2013-04-02 22:22:10 -0500

Neda gravatar image

updated 2013-04-04 21:41:54 -0500

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)
edit retag flag offensive close merge delete

Comments

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

Neda gravatar imageNeda ( 2013-04-03 21:14:24 -0500 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2013-04-04 05:14:04 -0500

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

Comments

It was so much helpful, thank you !

Neda gravatar imageNeda ( 2013-04-04 06:04:58 -0500 )edit

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

Neda gravatar imageNeda ( 2013-04-15 06:41:05 -0500 )edit

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

calc314 gravatar imagecalc314 ( 2013-04-15 13:08:52 -0500 )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-02 22:22:10 -0500

Seen: 294 times

Last updated: Apr 04 '13