Loading [MathJax]/jax/output/HTML-CSS/jax.js

First time here? Check out the FAQ!

Ask Your Question
0

bezout coefficients ?

asked 9 years ago

hashirama gravatar image

I want to find the bezout coefficient for those 2 polynomials :

f=1+xx2x4+x5 and g=1+x2+x3x6 when I use the gcd function in sage the output is :

sage: gcd(f,g)
sage: 1

but when I use xgcd(f,g) it gives me the following :

(27, $9x^5 - 18x^2 - 9x - 9,9x^4 - 9x^3 - 18x + 18$)

I want xgcd to give me 1 instead of -27 so the polynomials will be the bezout coefficients

P.S: I can't divide the polynomials by -27 because i'm working in ZZ

Preview: (hide)

Comments

thank you !

hashirama gravatar imagehashirama ( 9 years ago )

1 Answer

Sort by » oldest newest most voted
0

answered 9 years ago

FrédéricC gravatar image

Please read the documentation

f.xgcd?
Preview: (hide)
link

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 9 years ago

Seen: 3,474 times

Last updated: May 27 '15