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]
Help please
| 1 | initial version |
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]
Help please
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].
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].
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 |
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].
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.