Skip to main content

A package to compute all the poles and zeros of a holomorphic function in a region of the complex plane.

Project description

scikit-zeros

Actions Status Documentation Status PyPI version PyPI platforms GitHub Discussion

Documentation

scikit-zeros is a Python package for finding the all the roots of a holomorphic function in a given region of the complex plane. It is based on subdivision using the argument principle combined with AAA rational approximation of the logarithm derivative.

Installation

You can install scikit-zeros using pip:

pip install skzeros

Example

import numpy as np
import skzeros

A = -0.19435
B = 1000.41
C = 522463
T = 0.005


def f(z):
    return z**2 + A * z + B * np.exp(-T * z) + C


def f_z(z):
    return 2 * z + A - T * B * np.exp(-T * z)


r = skzeros.Rectangle(complex(-2500, -15000), complex(10, 15000))
res = skzeros.find_zeros(r, f, f_z, max_arg_principle=7)

See Also

Project details


Download files

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

Source Distribution

skzeros-0.0.2.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

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

skzeros-0.0.2-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file skzeros-0.0.2.tar.gz.

File metadata

  • Download URL: skzeros-0.0.2.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for skzeros-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2789ec76e022dd1ea9590bec18c840af1aa2d5451bbeabcf7b756a35871eb235
MD5 75c481b8f885d53ef8677b2cbe673da8
BLAKE2b-256 7eed8989cdb5f37a7cee7a6a57e430416501c8ab5b46da3c3d41428b85cb452c

See more details on using hashes here.

Provenance

The following attestation bundles were made for skzeros-0.0.2.tar.gz:

Publisher: cd.yml on j-bowhay/scikit-zeros

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file skzeros-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: skzeros-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for skzeros-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 80b478dc76c662cf02870121829bdd3b65d5e0c595d2976b59c9e0985a8ce039
MD5 8a73ae07d0490eb1527d3ba861a8bd79
BLAKE2b-256 40bf392b455b9d6458b07ee5742361edcaa24b1862a04cc399f8761772312085

See more details on using hashes here.

Provenance

The following attestation bundles were made for skzeros-0.0.2-py3-none-any.whl:

Publisher: cd.yml on j-bowhay/scikit-zeros

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page