I wonder if anybody has seen the following natural polynomial. Given a monic univariate polynomial $P(z)$ of degree $N$, denote its roots by $z_1,..., z_N$. Now form a new polynomial $Q(z)$ of degree $N(N-1)/2$ which I call the discriminantal polynomial of $P(z)$. The set of roots of $Q(z)$ are all possible squares of differences $(z_i-z_j)^2$ with $i\neq j$. Observe that the constant term of $Q(z)$ is the usual discriminant of $P(z)$ and other coefficients are also polynomials in the coefficients of $P(z)$.
I wonder if this polynomial has already appeared in the literature as well as if there is a reasonable way to calculate it (for example, as the characteristic polynomial of some appropriate matrix).
Boris Shapiro, Stockholm