Use mpmath to solve the precision problem. (Fixed #21.)