Skip to main content

pyratapprox: Approximation by rational functions

pyratapprox provides a Python interface to Julia's RationalFunctionApproximation library, enabling efficient computation of rational function approximations and interpolations.

Installation

pip install pyratapprox

Note: Requires Julia to be installed. The required Julia packages will be installed automatically on first use.

Quick Start

import numpy as np
from pyratapprox import approximate, unitinterval, AAA

# Approximate a function on the unit interval [-1, 1]
f = approximate(np.sin, unitinterval, method=AAA)

# Evaluate the approximation
y = f(0.5)

# Get poles and residues
poles = f.poles()
poles, residues = f.residues()

Documentation

Full documentation is available at: https://complexvariables.github.io/pyratapprox

License

MIT License

Author

Toby Driscoll (driscoll@udel.edu)

Release files for pyratapprox 0.2.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 pyratapprox 0.2.0
File Size Uploaded
pyratapprox-0.2.0.tar.gz 85.9 kB Details

Built distribution (wheel)

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

Total release size:95.4 kB

Release files / pyratapprox-0.2.0.tar.gz

Download URL pyratapprox-0.2.0.tar.gz
Size 85.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f14d33d557d70ee5fd6636087044cc0f2b308801ec2ea0e430b5ecd6f942bbef
BLAKE2b-256 checksum
How to use checksums
e57aba362f272177d31fee819f1a0ce77241a7ace17ba3e5b11edf2778af886b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / pyratapprox-0.2.0-py3-none-any.whl

Download URL pyratapprox-0.2.0-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2253bfc0bf47c7cde06968a7dc9f38045256e60a6aba4e6f59977a7d19f46fa
BLAKE2b-256 checksum
How to use checksums
256420d29ba90cbaa70812ae657b3adc23d2b9b7e85cd57aedc66724993ca0d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

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