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
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
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2016-04-15 12:51:21 +0100
Seen: 344 times
Last updated: Apr 15 '16
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, andR
as the polynomial ring inz
overK
. Then, you definef
which has nothing to do withR
orK
since it is a symbolic expression depending on a variablea
! Actually, the code as you write it does not even work sincea
is undeclared. But let's say it is declared somewhere as a symbolic variable. You can either write simplyf-4
to get no constant coefficient, orf-f(a=0)
. Iff
where a polynomial of the polynomial ringR
(sayf=2*z+4
), you could also dof - f.constant_coefficient()
.