Oct-21-2021, 06:34 AM
(This post was last modified: Oct-21-2021, 06:34 AM by Gribouillis.)
What linux distribution do you have ?
In Ubuntu I have a package python3-gmpy2, also if I only want the header gmp.h, I can install the package libgmp-dev. The Gnu Multiprecision Library can be installed on any Linux computer.
Also note that other libraries exist for multiprecision, such as mpmath, which is used by sympy and sage I think, and there is also bigfloat and clnum.
In Ubuntu I have a package python3-gmpy2, also if I only want the header gmp.h, I can install the package libgmp-dev. The Gnu Multiprecision Library can be installed on any Linux computer.
Also note that other libraries exist for multiprecision, such as mpmath, which is used by sympy and sage I think, and there is also bigfloat and clnum.
>>> from sympy import * >>> x = symbols('x') >>> exp(x).evalf(100, subs={x: Float('1.0')}) 2.718281828459045235360287471352662497757247093699959574966967627724076630353547594571382178525166427 >>>