Python interface for rational function approximation via Julia
Project description
pyratapprox: Python Rational Function Approximation
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyratapprox-0.1.0.tar.gz.
File metadata
- Download URL: pyratapprox-0.1.0.tar.gz
- Upload date:
- Size: 575.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.3 cpython/3.13.11 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a12145ceeb2ea3f32f46b683a99b11a1faf724ec63df300863b54d7ad15b9136
|
|
| MD5 |
803bba6fe71baaaf0459e8f954267dcb
|
|
| BLAKE2b-256 |
91cef01726f2e702f92e9ede69c39b3dc8fe69ee9d6b250e5f25d315bc964c2e
|
File details
Details for the file pyratapprox-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyratapprox-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.3 cpython/3.13.11 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95419a6c1b7b85a4561d5f2575f9293112b56a862a7d81c7d15864fc9fd7fbf7
|
|
| MD5 |
1a7d9b0a53c2425ddd1178c4ebe737ae
|
|
| BLAKE2b-256 |
e2d16459bfdf9b5653f0d55aec4dee218ce2bd8c6b834867a14872ebe9c4ef11
|