Skip to main content

A Pure-Python Error Function and Inverse Error Function Package

Travis-CI (Linux, Max) Latest PyPI version Python Wheels Supported Python Versions Documentation Status

pyerf is a pure-Python implementation of the error function and inverse error function using the same functions that SciPy uses (namely parts of the Cephes math library, cprob/ndtr.c and cprob/ndtri.c).

This is a useful package for when you need to calculate some error fuctions but you don’t want to install all of the SciPy/NumPy stuff.

Usage

You can import the module:

from pyerf import pyerf
pyerf.erfinv(0.5)         # 0.476936...
pyerf.erf(0.5)            # 0.5204998...
pyerf.erfc(0.5)           # 0.4795001...

or the package:

import pyerf
pyerf.erfinv(0.5)         # 0.476936...
pyerf.erf(0.5)            # 0.5204998...
pyerf.erfc(0.5)           # 0.4795001...

or only a specific function:

from pyerf import erfinv as inverse_error_function
inverse_error_function(0.5)       # 0.476936...

and lastly, you can even use import * (but that’s no longer considered very Pythonic as it pollutes the namespace):

from pyerf import *
erfinv(0.5)         # 0.476936...
erf(0.5)            # 0.5204998...
erfc(0.5)           # 0.4795001...

Changelog

See CHANGELOG.md.

Download files

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

Source Distribution

pyerf-1.0.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distributions

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

pyerf-1.0.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

pyerf-1.0.1-py2-none-any.whl (11.2 kB view details)

Uploaded Python 2

File details

Details for the file pyerf-1.0.1.tar.gz.

File metadata

  • Download URL: pyerf-1.0.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyerf-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c0a9eef78cdb70550e08c08bd2d3cd3fb06ea9100de72d7c99ce9f329daf8797
MD5 7bccc9f5252ae789e9d7b21ce216d5d7
BLAKE2b-256 f20132cfc60a08cbcfd1a1de93a2d995ff458c65da3edde9f920754973ac7349

See more details on using hashes here.

File details

Details for the file pyerf-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyerf-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c1039d9d84681b0b635f3290699b72884b0f615fdf3a4738ba3e96c5185f69d8
MD5 91daa9ba324a3044a3c351865791a5e7
BLAKE2b-256 020be73e5e619f479fb98a24385a233be39237bac88950b24c50623818979aa4

See more details on using hashes here.

File details

Details for the file pyerf-1.0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for pyerf-1.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 68191839eedf566c031b4959fafff83fbd1c9022b42143ea3684c9b2d6e6371a
MD5 61c6926e30f5df7165c0dd14da8c1cc9
BLAKE2b-256 e1184d6d10b5dfbdd58d3cefa8b47124d3fc325fb384b159b852473df1446dfb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

3 files

0.1.6

3 files

0.1.5

3 files

0.1.4

3 files

0.1.1

3 files

0.1.0

2 files

Supported by

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