# 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

edit retag close merge delete

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

Sort by » oldest newest most voted
more