Re: [sage-support] solve and numerical answers

2020-09-14 Thread Vincent Delecroix
One way is to use polynomials sage: x = polygen(QQ) sage: (x^4 - 2*x - 1).roots(RealField(32), multiplicities=False) [-0.474626618, 1.39533699] sage: (x^4 - 2*x - 1).roots(ComplexField(128), multiplicities=False) [-0.47462661756260555032941320989493141267, 1.3953369944670730187931436130710553428

[sage-support] solve and numerical answers

2020-09-14 Thread Fernando Gouvea
I still don't know my way around the Sage documentation... Sorry for the elementary question. I just tried to use the *solve* command to find the roots of a polynomial of degree 4 with real coefficients. The result is a list of solutions expressed in (complicated) symbolic form. When I attempt