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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file pearcey-0.1.1.tar.gz.

File metadata

  • Download URL: pearcey-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pearcey-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d1cb597bb6d731eecdd6565ea3a92466c54a569310c1b8b52f2b1d7caa588999
MD5 f83320cf791822a0bd20feb451afb598
BLAKE2b-256 3fa3be418720651ca135a230aea99825925d8905bfa161f2230be04b2205c4d8

See more details on using hashes here.

File details

Details for the file pearcey-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pearcey-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pearcey-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca50a4bd3ef1e00f02df3dd4a3d6b680e49b727f0033fffb1d58ca71da2328fd
MD5 8d62c8557257cc7de383d7abe21a08ef
BLAKE2b-256 d4dc4c8b3a32cba335390709ad4c11dcaa6b1b6d1f9931099ba0a8e308273e08

See more details on using hashes here.

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