# Remove constant term

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

Remove constant term

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

Asked: **
2016-04-15 05:51:21 -0500
**

Seen: **70 times**

Last updated: **Apr 15 '16**

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.

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" `.

[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()`

.