Search code examples
pythongmpgmpy

Does gmpy2 have "e=2.1718..." constant?


It does have Euler–Mascheroni constant, but I cannot find whether it has exp(1) as well.


Solution

  • It does not. gmpy2 only provides the constants that are provided with the MPFR library. exp(1) would be the best option.