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.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distributions

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

Uploaded Python 3

autograd_gamma-0.4.1-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.1.tar.gz.

File metadata

  • Download URL: autograd-gamma-0.4.1.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.1.tar.gz
Algorithm Hash digest
SHA256 3b4349cb415bd6e28dd2fac5055e34de1b6c87fe711757a0e42a84bd650fba35
MD5 a705c3ca101ad0ff2b8408fa78313f07
BLAKE2b-256 8d3ed69826d3abf50497ee2f050255edb05a5a2809d9a70c588307aa402d48d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: autograd_gamma-0.4.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 99864819e3fe8423b8cb17da64a161854949b9a126ce409538d6b0f8007b1c3c
MD5 febe1707b9f829978f53d7d06a590311
BLAKE2b-256 830c169c73ba0a3f085644cd720c109b1e7dac3379a33fc64c272147a0959dc2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: autograd_gamma-0.4.1-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.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e15682e607c8ae856cac5cd95919f483861a864e2d3fbe0125d2446ee1cea92b
MD5 d3e2dd00bcd10eb96afda072dbe2942d
BLAKE2b-256 3e87788c4bf90cc5c534cb3b7fdb5b719175e33e2658decce75e35e2ce69766f

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