Skip to main content

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$$

pearcey

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


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)

Uploaded Source

Built Distribution

pearcey-0.1.1-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page