Ask Your Question
0

Coefficient of a single variable polynomial over a modular ring

asked 3 years ago

Sanu gravatar image

I want to find coefficent of a polynomial ring. How to do this?

R.<x>=IntegerModRing(15)[] f=1+x^2+4*x^6

So coefficient of x is 0, x^2 is 1, x^6 is 4 etc. How to get these?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 3 years ago

tolga gravatar image

Does this solve your problem?:

R.<x>=IntegerModRing(15)[]
f=1+x^2+4*x^6
coeffs=(f.coefficients(sparse=False))
show(coeffs)
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

1 follower

Stats

Asked: 3 years ago

Seen: 203 times

Last updated: Jul 23 '21