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 12:51:21 +0100
Seen: 405 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
Kas the finite field with 25 elements, andRas the polynomial ring inzoverK. Then, you definefwhich has nothing to do withRorKsince it is a symbolic expression depending on a variablea! Actually, the code as you write it does not even work sinceais undeclared. But let's say it is declared somewhere as a symbolic variable. You can either write simplyf-4to get no constant coefficient, orf-f(a=0). Iffwhere a polynomial of the polynomial ringR(sayf=2*z+4), you could also dof - f.constant_coefficient().