Skip to content

P-Harvey/mpmapth_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mpmath (v1.3.0): Complex Analysis Demonstration

Figure  8

The Mandelbrot set $(r=8, i=50)$ with bounds:

$\text{Re}(z)=[-1.296355025258600, -1.296355025258500]$

$\text{Im}(z)=[0.441851645984175, 0.441851645984275]$

Overview

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.

Features

  • 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.

Installation/Usage

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.

Examples

Figure  1

Figure  2

Figure  3

Figure  4

Figure  5

Figure  6

Figure  7

Figure  8

Figure  9

Figure 10

Figure 11

Figure 12

About

A review of mpmath v1.3.0

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published