Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Python interface for the Cephes library.

Project description

PyPI-License PyPI-Version Anaconda-Version Anaconda-Downloads Badge Documentation Status

This package provides a python interface for the Cephes library. It also supports Numba and its nopython mode.

Usage

from ncephes import cprob
print(cprob.incbet(1., 3., 0.3))

prints 0.657.

You can also call them inside a numba function

from ncephes import cprob
from numba import jit

@jit
def numba_incbet(a, b, x):
    return cprob.incbet(a, b, x)

print(numba_incbet(1., 3., 0.3))

and with nopython mode and nogil enabled

from ncephes import cprob
from numba import jit

incbet = cprob.incbet

@jit(nogil=True, nopython=True)
def numba_incbet(a, b, x):
    return incbet(a, b, x)

print(numba_incbet(1., 3., 0.3))

One can also statically link the compiled Cephes libraries ncprob and ncellf. Please, have a peek at the examples/prj_name for a minimalistic example.

Install

The recommended way of installing it is via conda

conda install -c conda-forge ncephes

An alternative way would be via pip

pip install ncephes

Running the tests

After installation, you can test it

python -c "import ncephes; ncephes.test()"

as long as you have pytest.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Project details


Release history Release notifications

This version
History Node

1.0.40

History Node

1.0.39

History Node

1.0.38

History Node

1.0.37

History Node

1.0.36

History Node

1.0.35

History Node

1.0.34

History Node

1.0.33

History Node

1.0.32

History Node

1.0.31

History Node

1.0.30

History Node

1.0.29

History Node

1.0.28

History Node

1.0.27

History Node

1.0.26

History Node

1.0.25

History Node

1.0.24

History Node

1.0.23

History Node

1.0.22

History Node

1.0.21

History Node

1.0.20

History Node

1.0.19

History Node

1.0.18

History Node

1.0.17

History Node

1.0.16

History Node

1.0.15

History Node

1.0.14

History Node

1.0.13

History Node

1.0.12

History Node

1.0.11

History Node

1.0.10

History Node

1.0.9

History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
ncephes-1.0.40-cp27-cp27m-macosx_10_11_x86_64.whl (443.5 kB) Copy SHA256 hash SHA256 Wheel cp27 Jun 1, 2017
ncephes-1.0.40-cp27-cp27m-manylinux1_x86_64.whl (616.8 kB) Copy SHA256 hash SHA256 Wheel cp27 Jun 1, 2017
ncephes-1.0.40-cp27-cp27mu-manylinux1_x86_64.whl (616.7 kB) Copy SHA256 hash SHA256 Wheel cp27 Jun 1, 2017
ncephes-1.0.40-cp35-cp35m-macosx_10_11_x86_64.whl (443.8 kB) Copy SHA256 hash SHA256 Wheel cp35 Jun 1, 2017
ncephes-1.0.40-cp35-cp35m-manylinux1_x86_64.whl (604.8 kB) Copy SHA256 hash SHA256 Wheel cp35 Jun 1, 2017
ncephes-1.0.40-cp36-cp36m-macosx_10_11_x86_64.whl (443.8 kB) Copy SHA256 hash SHA256 Wheel cp36 Jun 1, 2017
ncephes-1.0.40-cp36-cp36m-manylinux1_x86_64.whl (604.8 kB) Copy SHA256 hash SHA256 Wheel cp36 Jun 1, 2017
ncephes-1.0.40.tar.gz (181.8 kB) Copy SHA256 hash SHA256 Source None Jun 1, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page