Skip to main content

GitHub release (with filter) Test Status PyPI - Version Conda Version Documentation Status GitHub License

Spheroidal

spheroidal is a python library for computing spin weighted spheroidal harmonics along with their eigenvalues and derivatives. It supports both integer and half integer spin weights. The library provides implementations of the spherical expansion method described in (Hughes, 2000) and the continued fraction method from (Leaver, 1985). Also included is code for computing spin weighted spherical harmonics and spherical-spheroidal mixing coefficients. See the documentation for more information.

Installation

Install using Anaconda

   conda install -c conda-forge spheroidal

or using pip

   pip install spheroidal

Basic Usage

   import spheroidal
   from math import pi

   # Compute the spin weighted spheroidal eigenvalue with s = -2, l = 2, m = 2, gamma = 1.5
   spheroidal.eigenvalue(-2, 2, 2, 1.5)
   # -5.5776273646788255

   # Compute the corresponding spin weighted spheroidal harmonic
   S = spheroidal.harmonic(-2, 2, 2, 1.5)

   # Evaluate at theta = pi/2, phi = 0
   S(pi/2, 0)
   # (0.06692950919170575+0j)

   # Compute the derivative wrt theta at the same point
   spheroidal.harmonic_deriv(-2, 2, 2, 1.5)(pi/2, 0)
   # (-0.20852146386265577+0j)

Authors

  • Seyong Park
  • Zach Nasipak

Metadata

Release files for spheroidal 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spheroidal 0.1.1
File Size Uploaded
spheroidal-0.1.1.tar.gz 11.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spheroidal 0.1.1
File Interpreter ABI Platform
spheroidal-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 23.8 kB

Release files / spheroidal-0.1.1.tar.gz

Download URL spheroidal-0.1.1.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4324d30d723eeb51d59badb365ae090bf50e300b176190cece9127213f765afa
BLAKE2b-256 checksum
How to use checksums
3848e98183a7089a7fc4dae236efd7cd6c6e5f83ad7d773d0b88d6956e62e72c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / spheroidal-0.1.1-py3-none-any.whl

Download URL spheroidal-0.1.1-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab72ed04e97edd2963298ed5ee9e5f6cee265a88749fe2ae5a351b01d7370378
BLAKE2b-256 checksum
How to use checksums
a44ac4660bc5fedb5245998e5d68d9365086fcf47b9524d5e61d1d35fcd836fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page