deeptrack.backend.polynomials Module#

Bessel and Riccati-Bessel polynomials.

This module defines a set of functions for computing Bessel and Riccati-Bessel polynomials and their derivatives. It expands the corresponding capabilities of scipy.

Backend Compatibility#

All functions support both NumPy and PyTorch arrays. The NumPy path uses scipy.special directly; non-NumPy array-API inputs (e.g. PyTorch tensors) are routed through differentiable recurrence-based implementations instead.

Module Structure#

Functions:

  • besselj: Bessel polynomial of the 1st kind.

  • dbesselj: First derivative of the Bessel polynomial of the 1st kind.

  • bessely: Bessel polynomial of the 2nd kind.

  • dbessely: First derivative of the Bessel polynomial of the 2nd kind.

  • ricbesj: Riccati-Bessel polynomial of the 1st kind.

  • dricbesj: First derivative of the Riccati-Bessel polynomial of the 1st

    kind.

  • ricbesy: Riccati-Bessel polynomial of the 2nd kind.

  • dricbesy: First derivative of the Riccati-Bessel polynomial of the 2nd

    kind.

  • ricbesh: Riccati-Bessel polynomial of the 3rd kind.

  • dricbesh: First derivative of the Riccati-Bessel polynomial of the 3rd

    kind.

Functions#

besselj(l, x)

The Bessel polynomial of the 1st kind.

bessely(l, x)

The Bessel polynomial of the 2nd kind.

dbesselj(l, x)

The first derivative of the Bessel polynomial of the 1st kind.

dbessely(l, x)

The first derivative of the Bessel polynomial of the 2nd kind.

dricbesh(l, x)

The first derivative of the Riccati-Bessel polynomial of the 3rd kind.

dricbesj(l, x)

The first derivative of the Riccati-Bessel polynomial of the 1st kind.

dricbesy(l, x)

The first derivative of the Riccati-Bessel polynomial of the 2nd kind.

h1vp(v, z[, n])

Compute derivatives of Hankel function H1v(z) with respect to z.

ricbesh(l, x)

The Riccati-Bessel polynomial of the 3rd kind.

ricbesj(l, x)

The Riccati-Bessel polynomial of the 1st kind.

ricbesy(l, x)

The Riccati-Bessel polynomial of the 2nd kind.