A pure-Python implementation of the error function and inverse error function.
Project description
A pure-Python implementation of the error function and inverse error function.
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 * pyerf.erfinv(0.5) # 0.476936... pyerf.erf(0.5) # 0.5204998... pyerf.erfc(0.5) # 0.4795001...
Changelog
See CHANGELOG.md.
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
pyerf-0.1.4.tar.gz
(7.2 kB
view hashes)
Built Distributions
pyerf-0.1.4-py3-none-any.whl
(9.7 kB
view hashes)
pyerf-0.1.4-py2-none-any.whl
(9.7 kB
view hashes)