Formulae for computing ellipsoidal parameters