A python package to compute the Pearcey function/integral in catastrophe optics
Project description
pearcey
A python package to compute the Pearcey function/integral in catastrophe optics
The Pearcey function $\text{Pe}(x, y)$ is defined as
$$\text{Pe}(x, y) = \int_{-\infty}^{\infty}e^{i(t^4 + xt^2 + yt)} dt$$
Requirements
- numpy
- scipy (preferrably >= 1.10.0 for a better numerical integration scheme)
Installation
This package is available on PyPI. To install, simply run
pip install pearcey
Usage
The core function is pearcey(x, y)
. For example, to compute the value of the Pearcey function $\text{Pe}(x, y)$ at $x = 0$ and $y = 0$, simply do
>>> from pearcey import pearcey; pearcey(0, 0)
(1.6748133935381728+0.693730422047619j)
For details, refer to the docstring here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pearcey-0.1.1.tar.gz
(3.8 kB
view hashes)