Skip to main content

Autograd compatible approximations to the gamma family of functions

Project description

autograd-gamma

PyPI version

autograd compatible approximations to the derivatives of the Gamma-family of functions.

Tutorial

from autograd import grad
from autograd_gamma import gammainc, gammaincc, gammaincln, gammainccln


grad(gammainc, argnum=0)(1., 2.)
grad(gammaincc, argnum=0)(1., 2.)

# logarithmic functions too.
grad(gammaincln, argnum=0)(1., 2.)
grad(gammainccln, argnum=0)(1., 2.)



from autograd_gamma import betainc, betaincln

grad(betainc, argnum=0)(1., 2., 0.5)
grad(betainc, argnum=1)(1., 2., 0.5)

# logarithmic functions too.
grad(betaincln, argnum=0)(1., 2., 0.5)
grad(betaincln, argnum=1)(1., 2., 0.5)

Long-term goal

Build and improve upon the derivative of the upper and lower incomplete gamma functions. Eventually, if we have a fast analytical solution, we will merge into the autograd library.

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

autograd-gamma-0.4.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distributions

autograd_gamma-0.4.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

autograd_gamma-0.4.0-py2.py3-none-any.whl (3.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file autograd-gamma-0.4.0.tar.gz.

File metadata

  • Download URL: autograd-gamma-0.4.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for autograd-gamma-0.4.0.tar.gz
Algorithm Hash digest
SHA256 8f59eb778b25c98bbd7c320fcb451b7123e92a0c8a8fab074e4c88cb3b6be7bf
MD5 e2123bc71ba342de9220c739d9fa8067
BLAKE2b-256 2c6db302893785c0c0d3afdafe2b6390e2a2f3eaa9ef0e5081a02dcc7d5e3424

See more details on using hashes here.

File details

Details for the file autograd_gamma-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: autograd_gamma-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for autograd_gamma-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2ff4444135f66db5d134836b8290d2b9c42e7d740724beaf796dad3cde53665
MD5 72b05f7b663ad89cec67730fddf160d5
BLAKE2b-256 5807a735d64093486f75fc60f7a99024aaeef0a394d57c13e9786aca7c0b5443

See more details on using hashes here.

File details

Details for the file autograd_gamma-0.4.0-py2.py3-none-any.whl.

File metadata

  • Download URL: autograd_gamma-0.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for autograd_gamma-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d4e7969a9f1649f554ba7044ccf14a285ff2c3fa2c3a5528eab57baec18602f0
MD5 3d512a13bdb93933192ef937e4a72c67
BLAKE2b-256 2b4b6907baf0808686c6399650dc236078cb71407707def8a6a73505e9349cb0

See more details on using hashes here.

Supported by

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