About unified algorithm for determining the density potential energy and one-dimensional mass distribution of ellipsoidal planet
The algorithm of 1D density distribution approximation by Legendre polinomials is presented. Based on this approximation the internal gravity potential and potential gravity energy of ellipsoid waz estimated.