Revision history [back]

I want to extract all coefficients of a given polynomial including the nul coefficients of the polynomial.

I tried this R.<x>=QQ[] f=x^4-x^2+1 A=f.coeffients() A

The answer give [1,-1,1] But I want to get [1,0,-1,0,1]

 2 None slelievre 14339 ●16 ●135 ●284 http://carva.org/samue...

I want to extract all coefficients of a given polynomial including the nul coefficients of the polynomial.

I tried this R.<x>=QQ[] f=x^4-x^2+1 A=f.coeffients() Athis

R.<x> = QQ[]
f = x^4 - x^2 + 1
A = f.coeffients()
A


The This gave the answer give [1,-1,1] [1, -1, 1]. But I want to get [1,0,-1,0,1]

Help please[1, 0, -1, 0, 1].

 3 None slelievre 14339 ●16 ●135 ●284 http://carva.org/samue...

I want to extract all coefficients of a given polynomial including the nul coefficients of the polynomial.

I tried this

R.<x> = QQ[]
f = x^4 - x^2 + 1
A = f.coeffients()
A


This gave the answer [1, -1, 1]. But I want to get [1, 0, -1, 0, 1].

 4 None slelievre 14339 ●16 ●135 ●284 http://carva.org/samue...

Coefficients of a polynomial including zero coefficients

I want to extract all obtain the list of coefficients of a given polynomial polynomials, including the nul coefficients of the polynomial.zero coefficients.

I tried this

R.<x> = QQ[]
f = x^4 - x^2 + 1
A = f.coeffients()
f.coefficients()
A


This gave the answer [1, -1, 1]. But I want to get [1, 0, -1, 0, 1].

 5 retagged slelievre 14339 ●16 ●135 ●284 http://carva.org/samue...

Coefficients of a polynomial including zero coefficients

I want to obtain the list of coefficients of a polynomials, including the zero coefficients.

I tried this

R.<x> = QQ[]
f = x^4 - x^2 + 1
A = f.coefficients()
A


This gave the answer [1, -1, 1]. But I want to get [1, 0, -1, 0, 1].