# Revision history [back]

### how to get the coefficient of a multivariate polynomial with respect to a specific variable and degree ?

f=xz+xy*z+y+1; f.coefficient({z:1})

f.coeffcients(z)

### how to get the coefficient of a multivariate polynomial with respect to a specific variable and degree ?

f=xz+xy*z+y+1; f.coefficient({z:1})

f.coeffcients(z)f.coeffcient(z)

### how to get the coefficient of a multivariate polynomial with respect to a specific variable and degree ?

f=xz+xy*z+y+1; f.coefficient({z:1})

f.coefficient(z,1) f.coefficient({z:1}) f.coeffcient(z)

### how to get the coefficient of a multivariate polynomial with respect to a specific variable and degree ?

f=xz+xy*z+y+1; f.coefficient(z,1) f.coefficient({z:1}) f.coeffcient(z)

### how to get the coefficient of a multivariate polynomial with respect to a specific variable and degree ?

f=xz+xy*z+y+1; f.coefficient(z,1) f.coefficient({z:1}) f.coeffcient(z)

 6 None slelievre 16804 ●19 ●150 ●332 http://carva.org/samue...

### how to get the coefficient of a multivariate polynomial with respect to a specific variable and degree ?

f=xf = xz+xy*z+y+1; f.coefficient(z,1) f.coefficient({z:1}) y*z+y+1 f.coefficient(z, 1) f.coefficient({z: 1}) f.coeffcient(z)

### how to get the coefficient of a multivariate polynomial with respect to a specific variable and degree ?

f = xz+xy*z+y+1 f.coefficient(z, 1) f.coefficient({z: 1}) f.coeffcient(z)

### how to get the coefficient of a multivariate polynomial with respect to a specific variable and degree degree, in a quotient ring ?

F=ZZ.quo(3ZZ);F A.<x,y,z>=PolynomialRing(F);A R<x,y,z> = A.quotient(ideal(X^2-1,Y^2-1,Z^2-1)) f = xz+xz+xyy*z+y+1 z+y+1 f.coefficient(z, 1) f.coefficient({z: 1}) f.coeffcient(z)

 9 None slelievre 16804 ●19 ●150 ●332 http://carva.org/samue...

### how to get the coefficient of a multivariate polynomial with respect to a specific variable and degree, in a quotient ring ?

F=ZZ.quo(3ZZ);F A.<x,y,z>=PolynomialRing(F);A R<x,y,z> Here is what I tried.

sage: F = A.quotient(ideal(X^2-1,Y^2-1,Z^2-1))
ZZ.quo(3*ZZ); F
sage: A.<X, Y, Z> = PolynomialRing(F); A
sage: R.<x, y, z> = A.quotient(ideal(X^2 - 1, Y^2 - 1, Z^2 - 1))
sage: f = xz+xyz+y+1
x*z + x*y*z + y + 1
sage: f.coefficient(z, 1)
sage: f.coefficient({z: 1})
f.coeffcient(z)sage: f.coeffcient(z)