Ah I see. Let's finish this in the PR here: https://github.com/fredrik-johansson/mpmath/pull/15