Skip to content
p-siraPublic

About

Elliptic Integrals for Python

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

License PyPI Package Total Downloads Documentation DOI badge CodSpeed

EllipPy is an elliptic integral library for Python, powered by Rust. All functions support numpy and parallelization. EllipPy features high accuracy and performance. For more details on testing and benchmarks, please refer to Ellip.

Quick Start

from ellippy import *
import numpy as np

ellipk(
    m=np.array([0.1, 0.2, 0.3, 0.4, 0.5])
)  # [1.61244135 1.6596236  1.71388945 1.77751937 1.85407468]

ellippiinc(phi=np.pi / 4, n=0.1, m=0.25)  # 0.8197192266707629

cel(kc=0.5, p=0.1, a=1.0, b=-1.0)  # -5.2310275365518795

elliprf(
    x=[0.1, 0.2, 0.3], y=[0.2, 0.4, 0.8], z=[0.3, 0.5, 0.7]
)  # [2.29880489 1.68455225 1.32157804]

jacobi_zeta(phi=np.pi / 3, m=0.5)  # 0.13272240254017148

To install EllipPy, use your preferred package manager:

pip install ellippy
uv add ellippy

Features

  • Legendre's complete integrals
    • ellipk: Complete elliptic integral of the first kind (K).
    • ellipe: Complete elliptic integral of the second kind (E).
    • ellipke: Simultaneous computation of the complete elliptic integrals of the first and second kind (K and E).
    • ellippi: Complete elliptic integral of the third kind (Π).
    • ellipd: Complete elliptic integral of Legendre's type (D).
  • Legendre's incomplete integrals
    • ellipf: Incomplete elliptic integral of the first kind (F).
    • ellipeinc: Incomplete elliptic integral of the second kind (E).
    • ellippiinc: Incomplete elliptic integral of the third kind (Π).
    • ellipdinc: Incomplete elliptic integral of Legendre's type (D).
  • Bulirsch's integrals
    • cel: General complete elliptic integral in Bulirsch's form.
    • cel1: Complete elliptic integral of the first kind in Bulirsch's form.
    • cel2: Complete elliptic integral of the second kind in Bulirsch's form.
    • cel3: Complete elliptic integral of the third kind in Bulirsch's form.
    • el1: Incomplete elliptic integral of the first kind in Bulirsch's form.
    • el2: Incomplete elliptic integral of the second kind in Bulirsch's form.
    • el3: Incomplete elliptic integral of the third kind in Bulirsch's form.
  • Carlson's symmetric integrals
    • elliprf: Symmetric elliptic integral of the first kind (RF).
    • elliprg: Symmetric elliptic integral of the second kind (RG).
    • elliprj: Symmetric elliptic integral of the third kind (RJ).
    • elliprc: Degenerate elliptic integral of RF (RC).
    • elliprd: Degenerate elliptic integral of the third kind (RD).
  • Miscellaneous functions
    • jacobi_zeta: Jacobi Zeta function (Z).
    • heuman_lambda: Heuman Lambda function (Λ0).

Citation

EllipPy is based on a Rust library, Ellip. The paper is published in the Journal of Open Source Software. If EllipPy is helpful to your work, please consider citing Ellip:

Pornsiriprasert, S., (2026). Ellip: An Elliptic Integral Library for Rust. Journal of Open Source Software, 11(118), 9386, https://doi.org/10.21105/joss.09386

Bibtex format:

@article{Pornsiriprasert2026,
    doi = {10.21105/joss.09386}, 
    url = {https://doi.org/10.21105/joss.09386}, 
    year = {2026}, 
    publisher = {The Open Journal}, 
    volume = {11}, number = {118}, pages = {9386},
    author = {Pornsiriprasert, Sira}, 
    title = {Ellip: An Elliptic Integral Library for Rust}, 
    journal = {Journal of Open Source Software} } 

Performance calibration

For advanced users who wish the best performance fine tuned to their specific machines, see the Python-path calibration guide for measuring Rayon and interpreter-detachment crossovers through the public API.

About

Elliptic Integrals for Python

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages