# nCephes
[![PyPI-License](https://img.shields.io/pypi/l/ncephes.svg?style=flat-square)](https://pypi.python.org/pypi/ncephes/) [![PyPI-Version](https://img.shields.io/pypi/v/ncephes.svg?style=flat-square)](https://pypi.python.org/pypi/ncephes/) [![Anaconda-Version](https://anaconda.org/conda-forge/ncephes/badges/version.svg)](https://anaconda.org/conda-forge/ncephes) [![Anaconda-Downloads Badge](https://anaconda.org/conda-forge/ncephes/badges/downloads.svg)](https://anaconda.org/conda-forge/ncephes) [![Documentation Status](https://readthedocs.org/projects/ncephes/badge/?style=flat-square&version=latest)](https://ncephes.readthedocs.io/)
This package provides a python interface for the
[Cephes](http://www.netlib.org/cephes/) library.
It also supports [Numba](http://numba.pydata.org) and its ``nopython`` mode.
## Usage
```python
from ncephes import cprob
print(cprob.incbet(1., 3., 0.3))
```
prints ``0.657``.
You can also call them inside a numba function
```python
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
```python
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](http://conda.pydata.org/docs/index.html)
```bash
conda install -c conda-forge ncephes
```
An alternative way would be via pip
```bash
pip install ncephes
```
## Running the tests
After installation, you can test it
```
python -c "import ncephes; ncephes.test()"
```
as long as you have [pytest](http://docs.pytest.org/en/latest/).
## Authors
* **Danilo Horta** - [https://github.com/Horta](https://github.com/Horta)
## License
This project is licensed under the MIT License - see the
[LICENSE](LICENSE) file for details
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共153个文件
c:95个
patch:18个
py:15个
资源分类:Python库 所属语言:Python 资源全名:ncephes-1.0.31.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
Python库 | ncephes-1.0.31.tar.gz (153个子文件)
ei.c 26KB
clog.c 16KB
sici.c 16KB
dtestvec.c 15KB
pow.c 15KB
ellf.c 15KB
shichi.c 14KB
gamma.c 14KB
zetac.c 14KB
fresnl.c 12KB
mtst.c 11KB
ndtr.c 11KB
polylog.c 10KB
ndtri.c 10KB
dawsn.c 9KB
sincos.c 9KB
sin.c 8KB
cmplx.c 8KB
cmplx.c 8KB
polyn.c 8KB
polmisc.c 7KB
log2.c 7KB
incbet.c 7KB
log.c 7KB
asin.c 6KB
floor.c 6KB
sindg.c 6KB
fac.c 6KB
tan.c 6KB
exp10.c 5KB
log10.c 5KB
fdtr.c 5KB
planck.c 5KB
incbi.c 5KB
ellpk.c 5KB
kolmogorov.c 5KB
bdtr.c 5KB
tandg.c 5KB
rgamma.c 5KB
const.c 5KB
ellpe.c 4KB
stdtr.c 4KB
spence.c 4KB
euclid.c 4KB
igam.c 4KB
isnan.c 4KB
cprob_ffcall.c 4KB
psi.c 4KB
ellpj.c 3KB
polrt.c 3KB
chdtr.c 3KB
nbdtr.c 3KB
exp2.c 3KB
zeta.c 3KB
acosh.c 3KB
expn.c 3KB
igami.c 3KB
drand.c 3KB
drand.c 3KB
beta.c 3KB
atanh.c 3KB
asinh.c 3KB
powi.c 3KB
sqrt.c 3KB
ellie.c 3KB
sinh.c 3KB
mod2pi.c 3KB
unity.c 3KB
unity.c 3KB
ellik.c 3KB
revers.c 3KB
revers.c 3KB
pdtr.c 3KB
tanh.c 2KB
cbrt.c 2KB
mtherr.c 2KB
gdtr.c 2KB
expx2.c 2KB
chbevl.c 2KB
chbevl.c 2KB
chbevl.c 2KB
polevl.c 2KB
polevl.c 2KB
polevl.c 2KB
polevl.c 2KB
polevl.c 2KB
simpsn.c 2KB
cosh.c 1KB
round.c 1KB
btdtr.c 1012B
fabs.c 589B
ellf_ffcall.c 391B
misc_ffcall.c 224B
setprec.c 149B
polyn_ffcall.c 65B
setup.cfg 125B
protos.h 7KB
mconf.h 5KB
mconf.h 3KB
protos.h 3KB
共 153 条
- 1
- 2
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Javascript和Python的微商城项目设计源码 - MicroMall
- 基于Java的网上订餐系统设计源码 - online ordering system
- 基于Javascript的超级美眉网络资源管理应用模块设计源码
- 基于Typescript和PHP的编程知识储备库设计源码 - study-php
- Screenshot_2024-05-28-11-40-58-177_com.tencent.mm.jpg
- 基于Dart的Flutter小提琴调音器APP设计源码 - violinhelper
- 基于JavaScript和CSS的随寻订购网页设计源码 - web-order
- 基于MATLAB的声纹识别系统设计源码 - VoiceprintRecognition
- 基于Java的微服务插件集合设计源码 - wsy-plugins
- 基于Vue和微信小程序的监理日志系统设计源码 - supervisionLog
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功