suggested in https://github.com/mpmath/mpmath/issues/705#issuecomment-1768707042
suggested in #705 (comment)