Skip to main content

lyapunov-stability

Lyapunov stability analysis for agent systems. Is your fleet converging, diverging, or oscillating?

Uses real mathematics — numerical differentiation, Hessian analysis, positive definiteness checking, and basin of attraction estimation. Zero dependencies (no numpy).

Usage

from lyapunov_stability import LyapunovAnalyzer

analyzer = LyapunovAnalyzer()

# Analyze V = x^2 + y^2 (stable paraboloid)
result = analyzer.analyze(
    V=lambda x, y: x**2 + y**2,
    dVdx=lambda x, y: 2*x,
    dVdy=lambda x, y: 2*y,
    equilibrium=(0.0, 0.0),
)

print(result.stability)           # STABLE
print(result.is_positive_definite) # True
print(result.basin_radius)        # 4.99+ (large basin)

Supports 2D systems. Analytical or numerical gradients. Central difference approximation.

pip install lyapunov-stability

Metadata

Release files for lyapunov-stability 0.1.0

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

Source distribution (sdist)

Source distribution for lyapunov-stability 0.1.0
File Size Uploaded Provenance Actions
lyapunov_stability-0.1.0.tar.gz 4.6 kB Without provenance Details for lyapunov_stability-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lyapunov-stability 0.1.0
File Interpreter ABI Platform Actions
lyapunov_stability-0.1.0-py3-none-any.whl Python 3 none any Details for lyapunov_stability-0.1.0-py3-none-any.whl

Total release size: 9.3 kB

Release files / lyapunov_stability-0.1.0.tar.gz

Download URL lyapunov_stability-0.1.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
84ceebfc309b393e140e0b2ef8010df021ff8e1d73bba4b0c91d1c8cb4daea43
BLAKE2b-256 checksum
How to use checksums
5f40bd98f90e0c658e052105bf8fe1aeed88fa161860c12c6c8328d4020b1e04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / lyapunov_stability-0.1.0-py3-none-any.whl

Download URL lyapunov_stability-0.1.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67eb6650c0a6a492a5ba66de8550a33d836e42fb444e53eeaad3392334a785e3
BLAKE2b-256 checksum
How to use checksums
b007c5c4d77b121d46348b9feffb73f9e008eecaceab5b5c7c45dc85f78a6531
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for lyapunov-stability 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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