The paper examines the problem of computing the potential and the attraction force of an ellipsoid, which requires taking a triple integral with an analytically integrable kernel. We consider the kernel as a weight function, while the inner integral is approximated by a quadrature for the product of functions, one of which has an integrable singularity. Such an approach makes it possible to obt...