Test compute_precession() with scalar and array