The Mandelbrot set
This repository contains a demonstration of the mpmath
library (version 1.3.0) in Python. It provides examples and explanations of key features and functionalities offered by mpmath
for visualizing functional phase diagrams in the complex plane This demo is intended for anyone interested in exploring and using mpmath
for high-precision numerical computations in Python. This would not be possible without the work done by the package's creative team.
- Arbitrary-Precision Arithmetic: Demonstrates how to perform basic arithmetic operations (+, -, *, /) with arbitrary precision using
mpf
objects. - Special Functions: Showcases the use of
mpmath
's extensive library of special functions, such as the gamma function, Bessel functions, etc. - Root-finding and Optimization: Provides examples of using
mpmath
for finding roots of equations and optimizing functions. - Linear Algebra: Illustrates how to work with matrices and perform linear algebra operations with arbitrary precision.
- Integration and Differentiation: Demonstrates numerical integration and differentiation techniques using
mpmath
.
From the developers:
mpmath
requires Python 3.8 or later versions. It has been tested with CPython 3.8 through 3.14 and for PyPy 3.10.The latest release of mpmath can be downloaded from the mpmath website and GitHub
It should also be available in the Python Package Index at https://pypi.python.org/pypi/mpmath
To install latest release of Mpmath with pip, simply run
pip install mpmath
or from the source tree
pip install .
The latest development code is available here
See the main documentation for more detailed instructions.