SciPy

Cython API for Special Functions

Scalar, typed versions of many of the functions in scipy.special can be accessed directly from Cython; the complete list is given below. Functions are overloaded using Cython fused types so their names match their ufunc counterpart. The module follows the following conventions:

  • If a function’s ufunc counterpart returns multiple values, then the function returns its outputs via pointers in the final arguments
  • If a function’s ufunc counterpart returns a single value, then the function’s output is returned directly.

The module is usable from Cython via:

cimport scipy.special.cython_special

Error Handling

Functions can indicate an error by returning nan; however they cannot emit warnings like their counterparts in scipy.special.

Available Functions

  • nctdtrit:

    double nctdtrit(double, double, double)
    
  • shichi:

    void shichi(double, double *, double *)
    void shichi(double complex, double complex *, double complex *)
    
  • ellipe:

    double ellipe(double)
    
  • spence:

    double spence(double)
    double complex spence(double complex)
    
  • ndtr:

    double ndtr(double)
    double complex ndtr(double complex)
    
  • hyp2f1:

    double hyp2f1(double, double, double, double)
    double complex hyp2f1(double, double, double, double complex)
    
  • wrightomega:

    double complex wrightomega(double complex)
    
  • gammainccinv:

    double gammainccinv(double, double)
    
  • nbdtri:

    double nbdtri(long, long, double)
    double nbdtri(double, double, double)
    
  • sph_harm:

    double complex sph_harm(long, long, double, double)
    double complex sph_harm(double, double, double, double)
    
  • y0:

    double y0(double)
    
  • eval_sh_jacobi:

    double complex eval_sh_jacobi(double, double, double, double complex)
    double eval_sh_jacobi(long, double, double, double)
    double eval_sh_jacobi(double, double, double, double)
    
  • obl_ang1_cv:

    void obl_ang1_cv(double, double, double, double, double, double *, double *)
    
  • xlog1py:

    double xlog1py(double, double)
    double complex xlog1py(double complex, double complex)
    
  • chdtriv:

    double chdtriv(double, double)
    
  • dawsn:

    double dawsn(double)
    double complex dawsn(double complex)
    
  • psi:

    double complex psi(double complex)
    double psi(double)
    
  • nctdtridf:

    double nctdtridf(double, double, double)
    
  • hankel1e:

    double complex hankel1e(double, double complex)
    
  • ncfdtr:

    double ncfdtr(double, double, double, double)
    
  • sici:

    void sici(double, double *, double *)
    void sici(double complex, double complex *, double complex *)
    
  • ellipj:

    void ellipj(double, double, double *, double *, double *, double *)
    
  • jve:

    double jve(double, double)
    double complex jve(double, double complex)
    
  • ellipeinc:

    double ellipeinc(double, double)
    
  • pseudo_huber:

    double pseudo_huber(double, double)
    
  • i0e:

    double i0e(double)
    
  • stdtridf:

    double stdtridf(double, double)
    
  • mathieu_sem:

    void mathieu_sem(double, double, double, double *, double *)
    
  • exprel:

    double exprel(double)
    
  • chndtridf:

    double chndtridf(double, double, double)
    
  • pdtrc:

    double pdtrc(long, double)
    double pdtrc(double, double)
    
  • bei:

    double bei(double)
    
  • beip:

    double beip(double)
    
  • gammaincc:

    double gammaincc(double, double)
    
  • yv:

    double complex yv(double, double complex)
    double yv(double, double)
    
  • lpmv:

    double lpmv(double, double, double)
    
  • mathieu_b:

    double mathieu_b(double, double)
    
  • nctdtrinc:

    double nctdtrinc(double, double, double)
    
  • betainc:

    double betainc(double, double, double)
    
  • mathieu_modcem2:

    void mathieu_modcem2(double, double, double, double *, double *)
    
  • iti0k0:

    void iti0k0(double, double *, double *)
    
  • boxcox:

    double boxcox(double, double)
    
  • kerp:

    double kerp(double)
    
  • tandg:

    double tandg(double)
    
  • hankel2:

    double complex hankel2(double, double complex)
    
  • hankel1:

    double complex hankel1(double, double complex)
    
  • chdtr:

    double chdtr(double, double)
    
  • radian:

    double radian(double, double, double)
    
  • betaincinv:

    double betaincinv(double, double, double)
    
  • sindg:

    double sindg(double)
    
  • eval_jacobi:

    double complex eval_jacobi(double, double, double, double complex)
    double eval_jacobi(long, double, double, double)
    double eval_jacobi(double, double, double, double)
    
  • btdtrib:

    double btdtrib(double, double, double)
    
  • expi:

    double expi(double)
    double complex expi(double complex)
    
  • obl_rad2_cv:

    void obl_rad2_cv(double, double, double, double, double, double *, double *)
    
  • eval_genlaguerre:

    double complex eval_genlaguerre(double, double, double complex)
    double eval_genlaguerre(long, double, double)
    double eval_genlaguerre(double, double, double)
    
  • kolmogorov:

    double kolmogorov(double)
    
  • j0:

    double j0(double)
    
  • j1:

    double j1(double)
    
  • pro_ang1:

    void pro_ang1(double, double, double, double, double *, double *)
    
  • y1:

    double y1(double)
    
  • entr:

    double entr(double)
    
  • airye:

    void airye(double, double *, double *, double *, double *)
    void airye(double complex, double complex *, double complex *, double complex *, double complex *)
    
  • loggamma:

    double complex loggamma(double complex)
    double loggamma(double)
    
  • struve:

    double struve(double, double)
    
  • erfcx:

    double erfcx(double)
    double complex erfcx(double complex)
    
  • inv_boxcox1p:

    double inv_boxcox1p(double, double)
    
  • pdtri:

    double pdtri(long, double)
    double pdtri(double, double)
    
  • rgamma:

    double complex rgamma(double complex)
    double rgamma(double)
    
  • poch:

    double poch(double, double)
    
  • kelvin:

    void kelvin(double, double complex *, double complex *, double complex *, double complex *)
    
  • mathieu_a:

    double mathieu_a(double, double)
    
  • ndtri:

    double ndtri(double)
    
  • it2i0k0:

    void it2i0k0(double, double *, double *)
    
  • zetac:

    double zetac(double)
    
  • kolmogi:

    double kolmogi(double)
    
  • gammaln:

    double gammaln(double)
    
  • modstruve:

    double modstruve(double, double)
    
  • kei:

    double kei(double)
    
  • huber:

    double huber(double, double)
    
  • jv:

    double complex jv(double, double complex)
    double jv(double, double)
    
  • chndtrix:

    double chndtrix(double, double, double)
    
  • pdtr:

    double pdtr(long, double)
    double pdtr(double, double)
    
  • gdtrc:

    double gdtrc(double, double, double)
    
  • fdtrc:

    double fdtrc(double, double, double)
    
  • btdtria:

    double btdtria(double, double, double)
    
  • it2struve0:

    double it2struve0(double)
    
  • fdtri:

    double fdtri(double, double, double)
    
  • ker:

    double ker(double)
    
  • cotdg:

    double cotdg(double)
    
  • stdtrit:

    double stdtrit(double, double)
    
  • bdtrik:

    double bdtrik(double, double, double)
    
  • yve:

    double complex yve(double, double complex)
    double yve(double, double)
    
  • bdtrin:

    double bdtrin(double, double, double)
    
  • pro_rad1_cv:

    void pro_rad1_cv(double, double, double, double, double, double *, double *)
    
  • gdtr:

    double gdtr(double, double, double)
    
  • round:

    double round(double)
    
  • obl_rad1_cv:

    void obl_rad1_cv(double, double, double, double, double, double *, double *)
    
  • btdtri:

    double btdtri(double, double, double)
    
  • erfc:

    double erfc(double)
    double complex erfc(double complex)
    
  • mathieu_modcem1:

    void mathieu_modcem1(double, double, double, double *, double *)
    
  • pro_cv:

    double pro_cv(double, double, double)
    
  • erfi:

    double erfi(double)
    double complex erfi(double complex)
    
  • eval_chebys:

    double eval_chebys(double, double)
    double complex eval_chebys(double, double complex)
    double eval_chebys(long, double)
    
  • hyp2f0:

    void hyp2f0(double, double, double, long, double *, double *)
    void hyp2f0(double, double, double, double, double *, double *)
    
  • eval_chebyu:

    double complex eval_chebyu(double, double complex)
    double eval_chebyu(long, double)
    double eval_chebyu(double, double)
    
  • eval_chebyt:

    double eval_chebyt(double, double)
    double complex eval_chebyt(double, double complex)
    double eval_chebyt(long, double)
    
  • pbwa:

    void pbwa(double, double, double *, double *)
    
  • eval_hermitenorm:

    double eval_hermitenorm(long, double)
    
  • itmodstruve0:

    double itmodstruve0(double)
    
  • cbrt:

    double cbrt(double)
    
  • eval_chebyc:

    double eval_chebyc(double, double)
    double complex eval_chebyc(double, double complex)
    double eval_chebyc(long, double)
    
  • wofz:

    double complex wofz(double complex)
    
  • cosm1:

    double cosm1(double)
    
  • rel_entr:

    double rel_entr(double, double)
    
  • ellipkinc:

    double ellipkinc(double, double)
    
  • ncfdtri:

    double ncfdtri(double, double, double, double)
    
  • exp2:

    double exp2(double)
    
  • exp1:

    double exp1(double)
    double complex exp1(double complex)
    
  • tklmbda:

    double tklmbda(double, double)
    
  • modfresnelm:

    void modfresnelm(double, double complex *, double complex *)
    
  • modfresnelp:

    void modfresnelp(double, double complex *, double complex *)
    
  • btdtr:

    double btdtr(double, double, double)
    
  • eval_sh_chebyt:

    double eval_sh_chebyt(double, double)
    double eval_sh_chebyt(long, double)
    double complex eval_sh_chebyt(double, double complex)
    
  • eval_sh_chebyu:

    double complex eval_sh_chebyu(double, double complex)
    double eval_sh_chebyu(long, double)
    double eval_sh_chebyu(double, double)
    
  • k0e:

    double k0e(double)
    
  • cosdg:

    double cosdg(double)
    
  • airy:

    void airy(double complex, double complex *, double complex *, double complex *, double complex *)
    void airy(double, double *, double *, double *, double *)
    
  • pro_rad2_cv:

    void pro_rad2_cv(double, double, double, double, double, double *, double *)
    
  • fresnel:

    void fresnel(double, double *, double *)
    void fresnel(double complex, double complex *, double complex *)
    
  • exp10:

    double exp10(double)
    
  • itairy:

    void itairy(double, double *, double *, double *, double *)
    
  • bdtr:

    double bdtr(long, long, double)
    double bdtr(double, double, double)
    
  • berp:

    double berp(double)
    
  • hankel2e:

    double complex hankel2e(double, double complex)
    
  • kn:

    double kn(long, double)
    double kn(double, double)
    
  • expm1:

    double expm1(double)
    double complex expm1(double complex)
    
  • eval_sh_legendre:

    double eval_sh_legendre(long, double)
    double complex eval_sh_legendre(double, double complex)
    double eval_sh_legendre(double, double)
    
  • eval_hermite:

    double eval_hermite(long, double)
    
  • mathieu_cem:

    void mathieu_cem(double, double, double, double *, double *)
    
  • nbdtrc:

    double nbdtrc(long, long, double)
    double nbdtrc(double, double, double)
    
  • ncfdtrinc:

    double ncfdtrinc(double, double, double, double)
    
  • gammainc:

    double gammainc(double, double)
    
  • binom:

    double binom(double, double)
    
  • iv:

    double complex iv(double, double complex)
    double iv(double, double)
    
  • stdtr:

    double stdtr(double, double)
    
  • eval_laguerre:

    double complex eval_laguerre(double, double complex)
    double eval_laguerre(long, double)
    double eval_laguerre(double, double)
    
  • inv_boxcox:

    double inv_boxcox(double, double)
    
  • eval_gegenbauer:

    double eval_gegenbauer(double, double, double)
    double complex eval_gegenbauer(double, double, double complex)
    double eval_gegenbauer(long, double, double)
    
  • boxcox1p:

    double boxcox1p(double, double)
    
  • erf:

    double erf(double)
    double complex erf(double complex)
    
  • itj0y0:

    void itj0y0(double, double *, double *)
    
  • expn:

    double expn(long, double)
    double expn(double, double)
    
  • k1e:

    double k1e(double)
    
  • ber:

    double ber(double)
    
  • log1p:

    double log1p(double)
    double complex log1p(double complex)
    
  • gdtrix:

    double gdtrix(double, double, double)
    
  • smirnovi:

    double smirnovi(long, double)
    double smirnovi(double, double)
    
  • ive:

    double ive(double, double)
    double complex ive(double, double complex)
    
  • nrdtrimn:

    double nrdtrimn(double, double, double)
    
  • pdtrik:

    double pdtrik(double, double)
    
  • smirnov:

    double smirnov(long, double)
    double smirnov(double, double)
    
  • hyp1f1:

    double hyp1f1(double, double, double)
    double complex hyp1f1(double, double, double complex)
    
  • eval_legendre:

    double complex eval_legendre(double, double complex)
    double eval_legendre(long, double)
    double eval_legendre(double, double)
    
  • expit:

    long double expit(long double)
    float expit(float)
    double expit(double)
    
  • fdtr:

    double fdtr(double, double, double)
    
  • nbdtr:

    double nbdtr(long, long, double)
    double nbdtr(double, double, double)
    
  • gammasgn:

    double gammasgn(double)
    
  • betaln:

    double betaln(double, double)
    
  • chndtr:

    double chndtr(double, double, double)
    
  • pbdv:

    void pbdv(double, double, double *, double *)
    
  • pro_rad2:

    void pro_rad2(double, double, double, double, double *, double *)
    
  • pro_rad1:

    void pro_rad1(double, double, double, double, double *, double *)
    
  • ellipkm1:

    double ellipkm1(double)
    
  • itstruve0:

    double itstruve0(double)
    
  • fdtridfd:

    double fdtridfd(double, double, double)
    
  • nbdtrik:

    double nbdtrik(double, double, double)
    
  • k1:

    double k1(double)
    
  • k0:

    double k0(double)
    
  • nbdtrin:

    double nbdtrin(double, double, double)
    
  • obl_cv:

    double obl_cv(double, double, double)
    
  • kl_div:

    double kl_div(double, double)
    
  • i1e:

    double i1e(double)
    
  • owens_t:

    double owens_t(double, double)
    
  • kv:

    double kv(double, double)
    double complex kv(double, double complex)
    
  • bdtri:

    double bdtri(long, long, double)
    double bdtri(double, double, double)
    
  • log_ndtr:

    double log_ndtr(double)
    double complex log_ndtr(double complex)
    
  • kve:

    double complex kve(double, double complex)
    double kve(double, double)
    
  • obl_ang1:

    void obl_ang1(double, double, double, double, double *, double *)
    
  • i1:

    double i1(double)
    
  • i0:

    double i0(double)
    
  • bdtrc:

    double bdtrc(long, long, double)
    double bdtrc(double, double, double)
    
  • obl_rad2:

    void obl_rad2(double, double, double, double, double *, double *)
    
  • obl_rad1:

    void obl_rad1(double, double, double, double, double *, double *)
    
  • beta:

    double beta(double, double)
    
  • nrdtrisd:

    double nrdtrisd(double, double, double)
    
  • nctdtr:

    double nctdtr(double, double, double)
    
  • xlogy:

    double complex xlogy(double complex, double complex)
    double xlogy(double, double)
    
  • gammaincinv:

    double gammaincinv(double, double)
    
  • chndtrinc:

    double chndtrinc(double, double, double)
    
  • yn:

    double yn(long, double)
    double yn(double, double)
    
  • hyp0f1:

    double hyp0f1(double, double)
    double complex hyp0f1(double, double complex)
    
  • hyperu:

    double hyperu(double, double, double)
    
  • agm:

    double agm(double, double)
    
  • logit:

    double logit(double)
    long double logit(long double)
    float logit(float)
    
  • pro_ang1_cv:

    void pro_ang1_cv(double, double, double, double, double, double *, double *)
    
  • it2j0y0:

    void it2j0y0(double, double *, double *)
    
  • besselpoly:

    double besselpoly(double, double, double)
    
  • pbvv:

    void pbvv(double, double, double *, double *)
    
  • hyp1f2:

    void hyp1f2(double, double, double, double, double *, double *)
    
  • gdtrib:

    double gdtrib(double, double, double)
    
  • ncfdtridfd:

    double ncfdtridfd(double, double, double, double)
    
  • gdtria:

    double gdtria(double, double, double)
    
  • gamma:

    double complex gamma(double complex)
    double gamma(double)
    
  • chdtrc:

    double chdtrc(double, double)
    
  • ncfdtridfn:

    double ncfdtridfn(double, double, double, double)
    
  • mathieu_modsem1:

    void mathieu_modsem1(double, double, double, double *, double *)
    
  • mathieu_modsem2:

    void mathieu_modsem2(double, double, double, double *, double *)
    
  • keip:

    double keip(double)
    
  • chdtri:

    double chdtri(double, double)
    
  • hyp3f0:

    void hyp3f0(double, double, double, double, double *, double *)