Ask Your Question
0

Remove constant term

asked 2016-04-15 05:51:21 -0500

santoshi gravatar image

p=5 K.=GF(p^2);K.modulus() R.<z>=PolynomialRing(K); f=(2*a+4).

from above equation i just want to remove constant term 4

edit retag flag offensive close merge delete

Comments

To display blocks of code, either indent them with 4 spaces, or select the corresponding lines and click the "code" button (the icon with '101 010'). Can you edit your question to do that?

To display inline code, surround it within "backticks" or "backquotes" `.

slelievre gravatar imageslelievre ( 2016-04-15 07:30:36 -0500 )edit

[EDIT] I misunderstood your question, and you get an answer on your other question.[/EDIT] Your question does not make sense to me: You define K as the finite field with 25 elements, and R as the polynomial ring in z over K. Then, you define f which has nothing to do with R or K since it is a symbolic expression depending on a variable a! Actually, the code as you write it does not even work since a is undeclared. But let's say it is declared somewhere as a symbolic variable. You can either write simply f-4 to get no constant coefficient, or f-f(a=0). If f where a polynomial of the polynomial ring R (say f=2*z+4), you could also do f - f.constant_coefficient().

B r u n o gravatar imageB r u n o ( 2016-04-15 10:16:30 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-04-15 11:16:25 -0500

B r u n o gravatar image

See here

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: 2016-04-15 05:51:21 -0500

Seen: 62 times

Last updated: Apr 15 '16