how to find roots of a multivariate polynomial with only one variable

StackOverflow https://stackoverflow.com/questions/20810165

  •  22-09-2022
  •  | 
  •  

문제

Say I have a multivariate polynomial ring:

R.<w,x,y,z> = PolynomialRing(ZZ, 4, order='lex')

and a polynomial contains only one variable, for example:

f = w^4 - 1

How can I find the roots of f. Thx.

도움이 되었습니까?

해결책

sage: f.univariate_polynomial().roots()
[(1, 1), (-1, 1)]
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top