Skip to main content
radiax

Analytic polynomial roots within JAX

JIT-compatible fully analytic variant of jax.numpy.roots for small-degree polynomials

CI Codecov Ruff ty uv Publish PyPI PyPI - Python Version

Overview

radiax.roots is a drop-in replacement for jax.numpy.roots for polynomials of up to the third degree1. It is fully analytic, with support for complex roots and coefficients. It is JIT-compatible2 and has been benchmarked to be around 20x faster than jax.numpy.roots for cubic polynomials3.

Installation

pip install radiax

Usage

import jax.numpy as jnp
from radiax import roots

# Coefficients of the polynomial: x**3 - 6*x**2 + 11*x - 6
coeffs = jnp.array([1, -6, 11, -6])

# Find the roots of the polynomial
r = roots(coeffs)
print(r)

Footnotes

1 Support for degree 4 (quartic) polynomials has not been implemented yet.

2 Just like with jax.numpy.roots, the optional keyword argument strip_zeros must be set to False for JIT-compatibility.

3 radiax 0.1.3 running on an Intel Core i7-14700 CPU (JAX 0.11.1, Python 3.14.7, Ubuntu 24.04.5).


LMMP

Metadata

Release files for radiax 0.1.5

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

Source distribution (sdist)

Source distribution for radiax 0.1.5
File Size Uploaded Provenance Actions
radiax-0.1.5.tar.gz 3.8 kB Without provenance Details for radiax-0.1.5.tar.gz

Built distribution (wheel)

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

Total release size: 7.7 kB

Release files / radiax-0.1.5.tar.gz

Download URL radiax-0.1.5.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
948320bd7d26720f6c4083a299fd705b2dfc825f71de532c7b6b48c109198756
BLAKE2b-256 checksum
How to use checksums
43cf34794c1bfe803575bc197ecdec8f657f53653e2baa7a4acede985c5c89d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.3 {"installer":{"name":"uv","version":"0.13.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / radiax-0.1.5-py3-none-any.whl

Download URL radiax-0.1.5-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d9eb150787e3cb92272885e9059411496eaf5dd57bea3376d5d6cd11ffadcc4
BLAKE2b-256 checksum
How to use checksums
c4c4546148e664d3cc4dd14a7871a717b5693caf4621a8d705928fbd5316bc18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.3 {"installer":{"name":"uv","version":"0.13.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for radiax 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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