Optimize R^n calculation for eccentricity.