Study of the inertial functions for rare-earth nuclei