The equations of ellipsoidal star variability applied to HR 8427