cds2.special
Deprecated since 4.3.0
Importing this module emits a DeprecationWarning. Use
scipy.special directly instead. See
Deprecated modules for the migration guide.
Special mathematical functions on scipy.special - gamma family, error functions, Bessels and zeta.
Special mathematical functions built on scipy.special.
gamma_fn(x)
Euler gamma function for real arguments.
Source code in src/cds2/special.py
69 70 71 | |
gammaln(x)
Log-gamma function - numerically stable for large inputs.
Source code in src/cds2/special.py
74 75 76 | |
digamma(x)
Digamma (psi) function - logarithmic derivative of gamma.
Source code in src/cds2/special.py
79 80 81 | |
fresnel_c(x)
Fresnel cosine integral C(x).
Source code in src/cds2/special.py
84 85 86 | |
fresnel_s(x)
Fresnel sine integral S(x).
Source code in src/cds2/special.py
89 90 91 | |
erf(x)
Gaussian error function.
Source code in src/cds2/special.py
94 95 96 | |
erfc(x)
Complementary error function (accurate in the far tail).
Source code in src/cds2/special.py
99 100 101 | |
erfinv(x)
Inverse error function on [-1, 1].
Source code in src/cds2/special.py
104 105 106 | |
beta_fn(a, b)
Euler beta function.
Source code in src/cds2/special.py
109 110 111 | |
betaln(a, b)
Log-beta function.
Source code in src/cds2/special.py
114 115 116 | |
bessel_j0(x)
Bessel function of the first kind, order 0.
Source code in src/cds2/special.py
119 120 121 | |
bessel_j1(x)
Bessel function of the first kind, order 1.
Source code in src/cds2/special.py
124 125 126 | |
bessel_y0(x)
Bessel function of the second kind (Neumann), order 0.
Source code in src/cds2/special.py
129 130 131 | |
spherical_bessel_j0(x)
Spherical Bessel function of the first kind, order 0.
Source code in src/cds2/special.py
134 135 136 | |
spherical_bessel_j1(x)
Spherical Bessel function of the first kind, order 1.
Source code in src/cds2/special.py
139 140 141 | |
airy_ai(x)
Airy function Ai - solves y'' = x*y, decaying for x > 0.
Source code in src/cds2/special.py
144 145 146 147 | |
airy_bi(x)
Airy function Bi - grows exponentially for x > 0.
Source code in src/cds2/special.py
150 151 152 153 | |
legendre_pn(n, x)
Legendre polynomial P_n evaluated on [-1, 1].
Source code in src/cds2/special.py
156 157 158 | |
elliptic_k(m)
Complete elliptic integral of the first kind K(m).
Source code in src/cds2/special.py
161 162 163 | |
elliptic_e(m)
Complete elliptic integral of the second kind E(m).
Source code in src/cds2/special.py
166 167 168 | |
exp1(x)
Exponential integral E1(x) = integral from x to inf of e^-t/t.
Source code in src/cds2/special.py
171 172 173 | |
hypergeometric_2f1(a, b, c, z)
Gauss hypergeometric function 2F1(a, b; c; z).
Source code in src/cds2/special.py
176 177 178 | |
zeta(x, q=None)
Riemann (or Hurwitz with q) zeta function at a real point.
Source code in src/cds2/special.py
181 182 183 184 185 | |
bessel_jv(nu, x)
Bessel function of the first kind of real order nu.
Source code in src/cds2/special.py
189 190 191 | |
bessel_yv(nu, x)
Bessel function of the second kind of real order nu.
Source code in src/cds2/special.py
194 195 196 | |
bessel_iv(nu, x)
Modified Bessel function of the first kind.
Source code in src/cds2/special.py
199 200 201 | |
bessel_kv(nu, x)
Modified Bessel function of the second kind.
Source code in src/cds2/special.py
204 205 206 | |
hankel1_fn(nu, x)
Hankel function of the first kind H1_nu (real part).
Source code in src/cds2/special.py
209 210 211 | |
struve_h0(x)
Struve function H_0.
Source code in src/cds2/special.py
214 215 216 | |
struve_h1(x)
Struve function H_1.
Source code in src/cds2/special.py
219 220 221 | |
chebyshev_tn(n, x)
Chebyshev polynomial T_n on [-1, 1].
Source code in src/cds2/special.py
224 225 226 | |
chebyshev_un(n, x)
Chebyshev polynomial U_n on [-1, 1].
Source code in src/cds2/special.py
229 230 231 | |
laguerre_ln(n, x)
Laguerre polynomial L_n on [0, inf).
Source code in src/cds2/special.py
234 235 236 | |
hermite_hn(n, x)
Physicists' Hermite polynomial H_n.
Source code in src/cds2/special.py
239 240 241 | |
jacobi_pnab(n, alpha, beta_param, x)
Jacobi polynomial P_n^(alpha, beta) on [-1, 1].
Source code in src/cds2/special.py
244 245 246 | |
spherical_harmonic(m, l_degree, theta, phi)
Spherical harmonic Y_l^m at polar theta and azimuth phi.
Source code in src/cds2/special.py
249 250 251 252 253 254 255 256 257 | |
lambert_w(x)
Lambert W function solving W*exp(W) = x (principal branch).
Source code in src/cds2/special.py
260 261 262 | |
faddeeva_w(z_real, z_imag)
Faddeeva function w(z) for z = z_real + i*z_imag.
Source code in src/cds2/special.py
265 266 267 268 | |
exponential_integral_en(n_order, x)
Generalized exponential integral E_n(x).
Source code in src/cds2/special.py
271 272 273 | |
sine_cosine_integrals(x)
Return (Si(x), Ci(x)) - sine and cosine integrals.
Source code in src/cds2/special.py
276 277 278 279 | |
binomial_coefficient(n, k)
Number of ways to choose k items from n.
Source code in src/cds2/special.py
282 283 284 | |