0

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.

Neo
  • 45
  • 2

1 Answers1

2
sage: f.univariate_polynomial().roots()
[(1, 1), (-1, 1)]
Luca De Feo
  • 704
  • 5
  • 12