made mu_complete_integral calculation more robust - want to avoid divinding by a