Expand description
Special mathematical functions.
See the book chapter Special functions.
Re-exports§
pub use gamma::gamma;pub use gamma::ln_gamma;pub use gamma::digamma;pub use beta::beta;pub use beta::ln_beta;pub use factorial::MAX_U64_FACTORIAL;pub use factorial::factorial_checked;pub use factorial::factorial;pub use factorial::factorial_f64;pub use factorial::ln_factorial;pub use binomial_coefficients::binomial_coefficient_checked;pub use binomial_coefficients::binomial_coefficient;pub use binomial_coefficients::ln_binomial_coefficient;pub use incomplete_gamma::incomplete_gamma;pub use incomplete_gamma::incomplete_gamma_upper;pub use error_function::error_function;pub use error_function::erfc;pub use error_function::erf_inv;pub use exponential_integrals::exponential_integral;pub use exponential_integrals::exponential_integral_en;pub use exponential_integrals::exponential_integral_ei;pub use incomplete_beta::incomplete_beta;pub use bessel_functions_integer::bessel_j_integer;pub use bessel_functions_integer::bessel_y_integer;pub use bessel_functions_integer::bessel_jy_integer;pub use bessel_functions_integer::bessel_i_integer;pub use bessel_functions_integer::bessel_k_integer;pub use bessel_functions_fractional::bessel_jy;pub use bessel_functions_fractional::bessel_ik;pub use bessel_functions_fractional::bessel_fractional;pub use bessel_functions_fractional::bessel_y_fractional;pub use bessel_functions_fractional::bessel_i_fractional;pub use bessel_functions_fractional::bessel_k_fractional;pub use bessel_functions_spherical::bessel_spherical;pub use bessel_functions_spherical::bessel_spherical_y;pub use airy_functions::airy_ai;pub use airy_functions::airy_bi;pub use fresnel_integrals::fresnel_integrals;pub use cosine_integrals::cosine_integral;pub use sine_integrals::sine_integral;pub use sine_integrals::sine_integral_shifted;pub use dawsons_integral::dawson_integral;pub use fermi_dirac_integrals::fermi_dirac_integral;pub use inverse_x_log_x::lambert_w0;pub use inverse_x_log_x::lambert_w_m1;pub use inverse_x_log_x::inverse_x_log_x;pub use inverse_x_log_x::inverse_x_log_x_lower;pub use elliptic_integrals::carlson_rc;pub use elliptic_integrals::carlson_rf;pub use elliptic_integrals::carlson_rd;pub use elliptic_integrals::carlson_rj;pub use elliptic_integrals::elliptic_integral;pub use elliptic_integrals::elliptic_integral_second;pub use elliptic_integrals::elliptic_integral_third;pub use elliptic_integrals::elliptic_f;pub use elliptic_integrals::elliptic_e;pub use elliptic_integrals::elliptic_pi;pub use jacobian_elliptic_functions::jacobian_elliptic;pub use hypergeometric_functions::hypergeometric;pub use hypergeometric_functions::hypergeometric_1f1;pub use hypergeometric_functions::hypergeometric_0f1;pub use statistical_functions::normal_pdf;pub use statistical_functions::normal_cdf;pub use statistical_functions::normal_quantile;pub use statistical_functions::gamma_cdf;pub use statistical_functions::chi_square_cdf;pub use statistical_functions::chi_square_survival;pub use statistical_functions::chi_square_quantile;pub use statistical_functions::beta_cdf;pub use statistical_functions::student_t_cdf;pub use statistical_functions::student_t_quantile;pub use statistical_functions::f_cdf;pub use statistical_functions::poisson_pmf;pub use statistical_functions::poisson_cdf;pub use statistical_functions::binomial_pmf;pub use statistical_functions::binomial_cdf;pub use orthogonal_polynomials::legendre;pub use orthogonal_polynomials::legendre_with_derivative;pub use orthogonal_polynomials::chebyshev_t;pub use orthogonal_polynomials::chebyshev_u;pub use orthogonal_polynomials::hermite;pub use orthogonal_polynomials::hermite_he;pub use orthogonal_polynomials::laguerre;pub use orthogonal_polynomials::jacobi;pub use spherical_harmonics::associated_legendre;pub use spherical_harmonics::normalized_associated_legendre;pub use spherical_harmonics::spherical_harmonic;pub use spherical_harmonics::real_spherical_harmonic;pub use lambert_w::lambert_w;pub use zeta::zeta;pub use zeta::hurwitz_zeta;pub use polylogarithm::polylog;pub use log_functions::boxcox;pub use log_functions::boxcox1p;pub use log_functions::expit;pub use log_functions::inv_boxcox;pub use log_functions::log_expit;pub use log_functions::log_ndtr;pub use log_functions::log_softmax;pub use log_functions::logit;pub use log_functions::logsumexp;pub use log_functions::logsumexp_weighted;pub use log_functions::softmax;pub use polygamma::bernoulli;pub use polygamma::euler;pub use polygamma::multigammaln;pub use polygamma::polygamma;pub use inverse_incomplete::betaincinv;pub use inverse_incomplete::gammainccinv;pub use inverse_incomplete::gammaincinv;pub use faddeeva::voigt_profile;pub use faddeeva::wofz;pub use struve::struve_h;pub use struve::struve_l;pub use kelvin::bei;pub use kelvin::beip;pub use kelvin::ber;pub use kelvin::berp;pub use kelvin::kei;pub use kelvin::keip;pub use kelvin::kelvin;pub use kelvin::ker;pub use kelvin::kerp;pub use hankel::hankel1;pub use hankel::hankel1e;pub use hankel::hankel2;pub use hankel::hankel2e;pub use bessel_zeros::jn_zeros;pub use bessel_zeros::jnp_zeros;pub use bessel_zeros::yn_zeros;pub use bessel_zeros::ynp_zeros;
Modules§
- airy_
functions - Airy functions.
- bessel_
functions_ fractional - Bessel functions of fractional (real) order.
- bessel_
functions_ integer - Bessel functions of integer order.
- bessel_
functions_ spherical - Spherical Bessel functions.
- bessel_
zeros - Zeros of the integer-order Bessel functions and their derivatives (SciPy’s
jn_zeros,jnp_zeros,yn_zerosandynp_zeros). - beta
- Beta function.
- binomial_
coefficients - Binomial coefficients.
- cosine_
integrals - Cosine integrals.
- dawsons_
integral - Dawson’s integral.
- elliptic_
integrals - Elliptic integrals, computed through Carlson’s symmetric forms.
- error_
function - Error function.
- exponential_
integrals - Exponential integrals.
- factorial
- Factorial.
- faddeeva
- The Faddeeva function
w(z) = e^{−z²} erfc(−iz)(SciPy’swofz) and the Voigt profile, the convolution of a Gaussian and a Lorentzian (SciPy’svoigt_profile). - fermi_
dirac_ integrals - Fermi-Dirac integrals.
- fresnel_
integrals - Fresnel integrals.
- gamma
- Gamma function and related functions.
- hankel
- The Hankel functions
H⁽¹⁾_ν = J_ν + iY_νandH⁽²⁾_ν = J_ν − iY_ν(SciPy’shankel1,hankel2,hankel1eandhankel2e). - hypergeometric_
functions - Hypergeometric functions.
- incomplete_
beta - Incomplete beta function.
- incomplete_
gamma - Incomplete gamma function.
- inverse_
incomplete - Inverses of the regularized incomplete gamma and beta functions (SciPy’s
gammaincinv,gammainccinvandbetaincinv): an initial approximation, then Halley’s method on the function itself, whose first two derivatives are known in closed form. - inverse_
x_ log_ x - Inverse of x log(x).
- jacobian_
elliptic_ functions - Jacobian elliptic functions.
- kelvin
- The Kelvin functions
ber,bei,ker,keiand their derivatives (SciPy’sber,bei,ker,kei,berp,beip,kerp,keipandkelvin). - lambert_
w - The Lambert W function on every complex branch.
- log_
functions - Functions for computing in the log domain without overflow or cancellation (SciPy’s
logsumexp,softmax,log_softmax,logit,expit,log_expit,log_ndtr), and the Box-Cox power transforms (boxcox,boxcox1p,inv_boxcox). - mathieu
- Mathieu functions (SciPy’s
mathieu_a,mathieu_b,mathieu_cem,mathieu_sem,mathieu_modcem1,mathieu_modcem2,mathieu_modsem1,mathieu_modsem2): solutions ofy'' + (a − 2q cos 2x) y = 0periodic inx, and of the modified equationy'' − (a − 2q cosh 2z) y = 0. - orthogonal_
polynomials - Classical orthogonal polynomials, evaluated by their stable three-term recurrences.
- parabolic_
cylinder - Parabolic cylinder functions (SciPy’s
pbdv,pbvvandpbwa): solutions of Weber’s equationy'' − (x²/4 + a) y = 0(U(a, x) = D_{−a−½}(x)andV(a, x)) and ofy'' + (x²/4 − a) y = 0(W(a, ±x)). - polygamma
- Polygamma functions, the multivariate log-gamma function, and Bernoulli and Euler numbers
(SciPy’s
polygamma,multigammaln,bernoulli,euler). - polylogarithm
- The polylogarithm
Li_s(z) = Σ_{k≥1} z^k / k^sfor real order and real argument. - sine_
integrals - Sine integrals.
- spherical_
harmonics - Associated Legendre functions and spherical harmonics.
- spheroidal
- Spheroidal wave functions (SciPy’s
pro_cv,obl_cv,pro_ang1,obl_ang1,pro_rad1,obl_rad1): solutions of(1 − x²) y'' − 2x y' + (λ − c²x² − m²/(1 − x²)) y = 0(prolate;c² → −c²for oblate), in Flammer’s normalisation. - statistical_
functions - Statistical functions: probability densities, cumulative distribution functions and quantiles built on the error function and the incomplete gamma and beta functions.
- struve
- The Struve functions
H_νand modified Struve functionsL_ν(SciPy’sstruveandmodstruve). - zeta
- The Riemann and Hurwitz zeta functions for real arguments.