Mathematical treatment of rigid rotator and calculation of bond length of simple molecule