Calculate the moment of inertia of an object based on its mass distribution. Useful for dynamics, physics, and mechanical engineering.