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)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyratapprox-0.2.0.tar.gz (85.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyratapprox-0.2.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file pyratapprox-0.2.0.tar.gz.

File metadata

  • Download URL: pyratapprox-0.2.0.tar.gz
  • Upload date:
  • Size: 85.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.15

File hashes

Hashes for pyratapprox-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f14d33d557d70ee5fd6636087044cc0f2b308801ec2ea0e430b5ecd6f942bbef
MD5 d9a076c8c17cb9ebbb87523184ba1669
BLAKE2b-256 e57aba362f272177d31fee819f1a0ce77241a7ace17ba3e5b11edf2778af886b

See more details on using hashes here.

File details

Details for the file pyratapprox-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pyratapprox-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.15

File hashes

Hashes for pyratapprox-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2253bfc0bf47c7cde06968a7dc9f38045256e60a6aba4e6f59977a7d19f46fa
MD5 f4244f42013891010631865b71db85d0
BLAKE2b-256 256420d29ba90cbaa70812ae657b3adc23d2b9b7e85cd57aedc66724993ca0d7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 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