> Every page of the ganymede website is listed in https://eugo.io/docs/ganymede/llms.txt.

# Mpmath

> Mpmath: Python library for real and complex floating-point arithmetic with arbitrary precision. A Python demo notebook from ganymede.

Web page: https://eugo.io/docs/ganymede/demo_notebooks/data_processing/mpmath/
Notebook: https://eugo.io/docs/ganymede/demo_notebooks/data_processing/mpmath/mpmath.ipynb (source: https://github.com/eugo-inc/ganymede/blob/main/demo_notebooks/data_processing/mpmath.ipynb)

Description:
- Python library for real and complex floating-point arithmetic with arbitrary precision. 

Resources:
- [GitHub] https://github.com/mpmath/mpmath
- [Website] https://mpmath.org/
- [Docs] https://mpmath.org/doc/current/
- [Examples] https://fredrikj.net/blog/2011/03/100-mpmath-one-liners-for-pi/

## Example 1

Computes 50 digits of pi by numerically evaluating the Gaussian integral

```python
from mpmath import mp

mp.dps = 50
print(mp.quad(lambda x: mp.exp(-x**2), [-mp.inf, mp.inf]) ** 2)
```
