Ask Your Question
0

Coefficient of a single variable polynomial over a modular ring

asked 2021-07-23 20:08:14 +0100

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-07-23 20:18:08 +0100

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

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: 2021-07-23 20:08:14 +0100

Seen: 190 times

Last updated: Jul 23 '21