Weight function of orthogonal polynomials.
x (array_like) – Values at which the weight function will be computed.
w (ndarray) – The weight function at x.