How to calculate discriminant using symmetric polynomials? [closed]

asked 2020-07-18 21:22:37 +0100

rain1 gravatar image

I want to calculate discriminants using symmetric polynomials. I am working on the quadratic discriminant first. Here is my attempt:

P.<x1,x2>=PolynomialRing(QQ)
S=SymmetricFunctions(P.base_ring())
e = S.elementary()
e(S.from_polynomial((x1-x2)^2))

this produces

e[1, 1] - 4*e[2]

How can I convert this output to b^2 - 4 * a * c?

Thank you

edit retag flag offensive reopen merge delete

Closed for the following reason too localized by rain1
close date 2020-07-19 18:22:31.141346