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.

Metadata

Release files for pyerf 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyerf 1.0.1
File Size Uploaded
pyerf-1.0.1.tar.gz 8.5 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pyerf 1.0.1
File Interpreter ABI Platform
pyerf-1.0.1-py3-none-any.whl Python 3 none any Details
pyerf-1.0.1-py2-none-any.whl Python 2 none any Details

Total release size: 30.8 kB

Release files / pyerf-1.0.1.tar.gz

Download URL pyerf-1.0.1.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c0a9eef78cdb70550e08c08bd2d3cd3fb06ea9100de72d7c99ce9f329daf8797
BLAKE2b-256 checksum
How to use checksums
f20132cfc60a08cbcfd1a1de93a2d995ff458c65da3edde9f920754973ac7349
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pyerf-1.0.1-py3-none-any.whl

Download URL pyerf-1.0.1-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1039d9d84681b0b635f3290699b72884b0f615fdf3a4738ba3e96c5185f69d8
BLAKE2b-256 checksum
How to use checksums
020be73e5e619f479fb98a24385a233be39237bac88950b24c50623818979aa4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pyerf-1.0.1-py2-none-any.whl

Download URL pyerf-1.0.1-py2-none-any.whl
Size 11.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
68191839eedf566c031b4959fafff83fbd1c9022b42143ea3684c9b2d6e6371a
BLAKE2b-256 checksum
How to use checksums
e1184d6d10b5dfbdd58d3cefa8b47124d3fc325fb384b159b852473df1446dfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.1 This release

3 release files

0.1.6

3 release files

0.1.5

3 release files

0.1.4

3 release files

0.1.1

3 release files

0.1.0

2 release 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