skillfed

hankel

Hankel Transformations using method of Ogata 2005

hankel v1.2.2 132.0K downloads/30d#11,567 on PyPI50
Permissive license MIT Active released

What it is and what it does

Hankel is a Python library that solves Hankel transforms and integrals—a class of integral transforms needed whenever Fourier analysis must be applied to radially symmetric fields. The core problem it addresses is that standard numerical integration schemes fail on these transforms because Bessel functions oscillate wildly, making quadrature unreliable. The package implements Ogata's method, which locates the zeros of the Bessel function to construct an accurate and fast quadrature scheme.

The library is built on numpy, scipy, and mpmath, and is designed for researchers and engineers working in fields where radial symmetry and Fourier analysis intersect. It supports arbitrary-order transforms, includes built-in support for radially symmetric Fourier transforms, and is thoroughly tested. The package is production-stable, actively maintained, and requires Python 3.6 or later.

Use it for:

  • Computing Hankel transforms for wave propagation problems in cylindrically symmetric media.
  • Evaluating radially symmetric Fourier transforms in image processing or diffraction analysis.
  • Solving integral equations involving Bessel functions in mathematical physics.
  • Performing accurate numerical integration of oscillatory functions weighted by Bessel functions.
  • Analyzing correlation functions with radial symmetry in statistical applications.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Computes Hankel transforms and integrals using Ogata's quadrature method, handling the oscillatory nature of Bessel function integration for radially symmetric problems.

Yes. The package solves a specific, well-defined numerical problem (Hankel transforms via Ogata's method) with low install friction, permissive licensing, no known vulnerabilities, active maintenance, and production-stable status. Install it if you need accurate Hankel transforms or radially symmetric Fourier analysis.

Install

hankel on PyPI

pip

pip install hankel

uv

uv add hankel

poetry

poetry add hankel

Installing hankel

Before you install

Low friction: pure Python wheel with three stable scientific dependencies (numpy, scipy, mpmath). Repository is active with recent commits and production-stable status.

License in practice

MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.

Quickstart

pip install hankel

import hankel
import numpy as np

# Define a radial function and compute its Hankel transform
h = hankel.HankelTransform(nu=0)
result = h.transform(lambda r: np.exp(-r), k=1.0)

Requires Python 3.6 or later.

Verify before relying

  • Accuracy benchmarks or error bounds for typical use cases beyond the Ogata 2005 reference.
  • Performance characteristics (speed, memory) for large-scale or high-order transforms.
  • Specific API and class names available in the hankel module for constructing transforms.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.6)
Install friction low — pure-Python wheel
Runtime dependencies 3 — mpmath, numpy, scipy
Maintenance actively maintained — 1,114 days since the last release
Last repo commit
First released
Downloads 132,031/month — #11,567 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: hankel-1.2.2-py3-none-any.whl

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: End Users/DesktopIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyTopic :: Scientific/EngineeringTopic :: Utilities

Tags

hankel transformbessel function integrationradially symmetric fourierogata quadratureoscillatory integralhankel integral computation
numerical-integrationbessel-functionsfourier-analysis

More Scientific/Engineering packages