Skip to main content

Crate lib_jsl_special_functions

Crate lib_jsl_special_functions 

Source
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_zeros and ynp_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’s wofz) and the Voigt profile, the convolution of a Gaussian and a Lorentzian (SciPy’s voigt_profile).
fermi_dirac_integrals
Fermi-Dirac integrals.
fresnel_integrals
Fresnel integrals.
gamma
Gamma function and related functions.
hankel
The Hankel functions H⁽¹⁾_ν = J_ν + iY_ν and H⁽²⁾_ν = J_ν − iY_ν (SciPy’s hankel1, hankel2, hankel1e and hankel2e).
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, gammainccinv and betaincinv): 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, kei and their derivatives (SciPy’s ber, bei, ker, kei, berp, beip, kerp, keip and kelvin).
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 of y'' + (a − 2q cos 2x) y = 0 periodic in x, and of the modified equation y'' − (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, pbvv and pbwa): solutions of Weber’s equation y'' − (x²/4 + a) y = 0 (U(a, x) = D_{−a−½}(x) and V(a, x)) and of y'' + (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^s for 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 functions L_ν (SciPy’s struve and modstruve).
zeta
The Riemann and Hurwitz zeta functions for real arguments.