Skip to content

Commit cb6b458

Browse files
Fix SciPy snippets
1 parent 4dd0290 commit cb6b458

File tree

1 file changed

+34
-59
lines changed

1 file changed

+34
-59
lines changed

src/python/scipy_special.yaml

Lines changed: 34 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ code: |
3535
---
3636
category: ['SciPy / Special Func', 'Elliptic Functions']
3737
setup: "from scipy import special, integrate, optimize, interpolate\nfrom scipy.integrate import odeint"
38-
variables: {"n":2,"v":1.5,"x":1.5,"z":0.5,"alpha":0.5,"beta":0.5,"nt":5,"m":1,"p":0.5,"phi":0.45}
38+
variables: {"n":2,"v":1.5,"x":1.5,"z":0.5,"alpha":0.5,"beta":0.5,"nt":5,"m":1,"p":0.5,"phi":0.45,"u":1,"y":0.5}
3939
---
4040
title: |
4141
ellipj: Jacobian elliptic functions
@@ -265,7 +265,7 @@ code: |
265265
---
266266
category: ['SciPy / Special Func', 'Bessel / Integrals of Bessel']
267267
setup: "from scipy import special, integrate, optimize, interpolate\nfrom scipy.integrate import odeint"
268-
variables: {"n":2,"v":1.5,"x":1.5,"z":0.5,"alpha":0.5,"beta":0.5,"nt":5}
268+
variables: {"n":2,"v":1.5,"x":1.5,"z":0.5,"alpha":0.5,"beta":0.5,"nt":5,"a":2,"lmb":1,"nu":3}
269269
---
270270
title: |
271271
itj0y0: Integrals of Bessel functions of order 0: $\int_0^x J_0(t)\, dt$, $\int_0^x Y_0(t)\, dt$
@@ -331,34 +331,24 @@ setup: "from scipy import special, integrate, optimize, interpolate\nfrom scipy.
331331
variables: {"n":2,"v":1.5,"x":1.5,"z":0.5,"alpha":0.5,"beta":0.5,"nt":5}
332332
---
333333
title: |
334-
sph_jn: Compute the spherical Bessel function $j_n(z)$ and its derivative for all orders up to and including $n$
334+
spherical_jn: Compute the spherical Bessel function $j_n(z)$ and its derivative for all orders up to and including $n$
335335
code: |
336-
special.sph_jn(n, z)
336+
special.spherical_jn(n, z)
337337
---
338338
title: |
339-
sph_yn: Compute the spherical Bessel function $y_n(z)$ and its derivative for all orders up to and including $n$
339+
spherical_yn: Compute the spherical Bessel function $y_n(z)$ and its derivative for all orders up to and including $n$
340340
code: |
341-
special.sph_yn(n, z)
341+
special.spherical_yn(n, z)
342342
---
343343
title: |
344-
sph_jnyn: Compute the spherical Bessel functions, $j_n(z)$ and $y_n(z)$ and their derivatives for all orders up to and including $n$
344+
spherical_in: Compute the spherical Bessel function $i_n(z)$ and its derivative for all orders up to and including $n$
345345
code: |
346-
special.sph_jnyn(n, z)
346+
special.spherical_in(n, z)
347347
---
348348
title: |
349-
sph_in: Compute the spherical Bessel function $i_n(z)$ and its derivative for all orders up to and including $n$
349+
spherical_kn: Compute the spherical Bessel function $k_n(z)$ and its derivative for all orders up to and including $n$
350350
code: |
351-
special.sph_in(n, z)
352-
---
353-
title: |
354-
sph_kn: Compute the spherical Bessel function $k_n(z)$ and its derivative for all orders up to and including $n$
355-
code: |
356-
special.sph_kn(n, z)
357-
---
358-
title: |
359-
sph_inkn: Compute the spherical Bessel functions, $i_n(z)$ and $k_n(z)$ and their derivatives for all orders up to and including $n$
360-
code: |
361-
special.sph_inkn(n, z)
351+
special.spherical_kn(n, z)
362352
---
363353
category: ['SciPy / Special Func', 'Bessel / Riccati-Bessel']
364354
setup: "from scipy import special, integrate, optimize, interpolate\nfrom scipy.integrate import odeint"
@@ -405,7 +395,7 @@ code: |
405395
---
406396
category: ['SciPy / Special Func', 'Statistics']
407397
setup: "from scipy import special, integrate, optimize, interpolate\nfrom scipy.integrate import odeint"
408-
variables: {"n":2,"v":1.5,"x":0.66,"z":0.5,"alpha":0.5,"beta":0.5,"nt":5,"a":0,"b":1,"k":1,"p":0.75,"df":0,"dfn":1,"dfd":0.5,"std":3,"t":1,"nc":2,"f":0.7,"y":0.45}
398+
variables: {"n":2,"v":1.5,"x":0.66,"z":0.5,"alpha":0.5,"beta":0.5,"nt":5,"a":0,"b":1,"k":1,"p":0.75,"df":0,"dfn":1,"dfd":0.5,"std":3,"t":1,"nc":2,"f":0.7,"y":0.45,"mn":0.5,"e":1,"lmbda":0.66}
409399
---
410400
title: |
411401
bdtr: Binomial distribution cumulative distribution function
@@ -644,7 +634,7 @@ code: |
644634
---
645635
category: ['SciPy / Special Func', 'Information Theory Functions']
646636
setup: "from scipy import special, integrate, optimize, interpolate\nfrom scipy.integrate import odeint"
647-
variables: {"n":2,"v":1.5,"x":[-1,2,3],"z":0.5,"alpha":0.5,"beta":0.5,"nt":5,"y":[1,0,1.1],"delta":0.4}
637+
variables: {"n":2,"v":1.5,"x":[-1,2,3],"z":0.5,"alpha":0.5,"beta":0.5,"nt":5,"y":[1,0,1.1],"delta":0.4,"r":2}
648638
---
649639
title: |
650640
entr: Elementwise function for computing entropy.
@@ -673,7 +663,7 @@ code: |
673663
---
674664
category: ['SciPy / Special Func', 'Gamma and Related Functions']
675665
setup: "from scipy import special, integrate, optimize, interpolate\nfrom scipy.integrate import odeint"
676-
variables: {"n":2,"v":1.5,"x":1.5,"z":0.5,"alpha":0.5,"beta":0.5,"nt":5,"a":2.5,"y":0.45}
666+
variables: {"n":2,"v":1.5,"x":1.5,"z":0.5,"alpha":0.5,"beta":0.5,"nt":5,"a":1,"y":0.45,"b":4,"d":1,"c":-2,"m":1,"azimuthal_angle":5,"polar_angle":3}
677667
---
678668
title: |
679669
gamma: Gamma function
@@ -881,7 +871,7 @@ variables: {"n":2,"v":1.5,"x":1.5,"z":0.5,"alpha":0.5,"beta":0.5,"nt":5}
881871
title: |
882872
ellip_harm: Ellipsoidal harmonic functions $E^p_n(l)$
883873
code: |
884-
special.ellip_harm(h2, k2, n, p, s[, signm, signn])
874+
special.ellip_harm(h2, k2, n, p, s)
885875
---
886876
title: |
887877
ellip_harm_2: Ellipsoidal harmonic functions $F^p_n(l)$
@@ -980,81 +970,81 @@ code: |
980970
title: |
981971
legendre: Coefficients of the $n$th order Legendre polynomial, $P_n(x)$
982972
code: |
983-
special.legendre(n[, monic])
973+
special.legendre(n)
984974
---
985975
title: |
986976
chebyt: Coefficients of the $n$th order Chebyshev polynomial of first kind, $T_n(x)$
987977
code: |
988-
special.chebyt(n[, monic])
978+
special.chebyt(n)
989979
---
990980
title: |
991981
chebyu: Coefficients of the $n$th order Chebyshev polynomial of second kind, $U_n(x)$
992982
code: |
993-
special.chebyu(n[, monic])
983+
special.chebyu(n)
994984
---
995985
title: |
996986
chebyc: Coefficients of the $n$th order Chebyshev polynomial of first kind, $C_n(x)$
997987
code: |
998-
special.chebyc(n[, monic])
988+
special.chebyc(n)
999989
---
1000990
title: |
1001991
chebys: Coefficients of the $n$th order Chebyshev polynomial of second kind, $S_n$(x)
1002992
code: |
1003-
special.chebys(n[, monic])
993+
special.chebys(n)
1004994
---
1005995
title: |
1006996
jacobi: Coefficients of the $n$th order Jacobi polynomial, $P^(\alpha,\beta)_n(x)$ orthogonal over [-1,1] with weighting function $(1-x)^\alpha (1+x)^\beta$ with $\alpha,\beta > -1$
1007997
code: |
1008-
special.jacobi(n, alpha, beta[, monic])
998+
special.jacobi(n, alpha, beta)
1009999
---
10101000
title: |
10111001
laguerre: Coefficients of the $n$th order Laguerre polynoimal, $L_n(x)$
10121002
code: |
1013-
special.laguerre(n[, monic])
1003+
special.laguerre(n)
10141004
---
10151005
title: |
10161006
genlaguerre: Coefficients of the $n$th order generalized (associated) Laguerre polynomial,
10171007
code: |
1018-
special.genlaguerre(n, alpha[, monic])
1008+
special.genlaguerre(n, alpha)
10191009
---
10201010
title: |
10211011
hermite: Coefficients of the $n$th order Hermite polynomial, $H_n(x)$, orthogonal over
10221012
code: |
1023-
special.hermite(n[, monic])
1013+
special.hermite(n)
10241014
---
10251015
title: |
10261016
hermitenorm: Coefficients of the $n$th order normalized Hermite polynomial, $He_n(x)$, orthogonal
10271017
code: |
1028-
special.hermitenorm(n[, monic])
1018+
special.hermitenorm(n])
10291019
---
10301020
title: |
10311021
gegenbauer: Coefficients of the $n$th order Gegenbauer (ultraspherical) polynomial,
10321022
code: |
1033-
special.gegenbauer(n, alpha[, monic])
1023+
special.gegenbauer(n, alpha)
10341024
---
10351025
title: |
10361026
sh_legendre: Coefficients of the $n$th order shifted Legendre polynomial, $P^\ast_n(x)$
10371027
code: |
1038-
special.sh_legendre(n[, monic])
1028+
special.sh_legendre(n)
10391029
---
10401030
title: |
10411031
sh_chebyt: Coefficients of $n$th order shifted Chebyshev polynomial of first kind, $T_n(x)$
10421032
code: |
1043-
special.sh_chebyt(n[, monic])
1033+
special.sh_chebyt(n)
10441034
---
10451035
title: |
10461036
sh_chebyu: Coefficients of the $n$th order shifted Chebyshev polynomial of second kind, $U_n(x)$
10471037
code: |
1048-
special.sh_chebyu(n[, monic])
1038+
special.sh_chebyu(n)
10491039
---
10501040
title: |
10511041
sh_jacobi: Coefficients of the $n$th order Jacobi polynomial, $G_n(p,q,x)$ orthogonal over [0,1] with weighting function $(1-x)^{p-q} x^{q-1}$ with $p>q-1$ and $q > 0$
10521042
code: |
1053-
special.sh_jacobi(n, p, q[, monic])
1043+
special.sh_jacobi(n, p, q)
10541044
---
10551045
category: ['SciPy / Special Func', 'Hypergeometric Functions']
10561046
setup: "from scipy import special, integrate, optimize, interpolate\nfrom scipy.integrate import odeint"
1057-
variables: {"n":2,"v":1.5,"x":1.5,"z":0.5,"alpha":0.5,"beta":0.5,"nt":5,"a":1,"b":2}
1047+
variables: {"n":2,"v":1.5,"x":1.5,"z":0.5,"alpha":0.5,"beta":0.5,"nt":5,"a":1,"b":2,"c":1.5}
10581048
---
10591049
title: |
10601050
hyp2f1: Gauss hypergeometric function ${}_2F_1(a, b; c; z)$
@@ -1076,21 +1066,6 @@ title: |
10761066
code: |
10771067
special.hyp0f1(v, z)
10781068
---
1079-
title: |
1080-
hyp2f0: Hypergeometric function ${}_2F_0$ in $y$ and an error estimate
1081-
code: |
1082-
special.hyp2f0(a, b, x, type)
1083-
---
1084-
title: |
1085-
hyp1f2: Hypergeometric function ${}_1F_2$ and error estimate
1086-
code: |
1087-
special.hyp1f2(a, b, c, x)
1088-
---
1089-
title: |
1090-
hyp3f0: Hypergeometric function ${}_3F_0$ in $y$ and an error estimate
1091-
code: |
1092-
special.hyp3f0(a, b, c, x)
1093-
---
10941069
category: ['SciPy / Special Func', 'Parabolic Cylinder Functions']
10951070
setup: "from scipy import special, integrate, optimize, interpolate\nfrom scipy.integrate import odeint"
10961071
variables: {"n":2,"v":1.5,"x":1.5,"z":0.5,"alpha":0.5,"beta":0.5,"nt":5}
@@ -1359,7 +1334,7 @@ code: |
13591334
---
13601335
category: ['SciPy / Special Func', 'Combinatorics']
13611336
setup: "from scipy import special, integrate, optimize, interpolate\nfrom scipy.integrate import odeint"
1362-
variables: {"n":2,"v":1.5,"x":1.5,"z":0.5,"alpha":0.5,"beta":0.5,"nt":5,"N":5}
1337+
variables: {"n":2,"v":1.5,"x":1.5,"z":0.5,"alpha":0.5,"beta":0.5,"nt":5,"N":5,"k":3}
13631338
---
13641339
title: |
13651340
comb: The number of combinations of N things taken k at a time
@@ -1428,7 +1403,7 @@ code: |
14281403
title: |
14291404
factorialk: $n(!!...!)$ = multifactorial of order $k$
14301405
code: |
1431-
special.factorialk(n, k, exact=False)
1406+
special.factorialk(n, k, exact=True)
14321407
---
14331408
title: |
14341409
shichi: Hyperbolic sine and cosine integrals
@@ -1448,7 +1423,7 @@ code: |
14481423
title: |
14491424
lambertw: Lambert $W$ function [R497]
14501425
code: |
1451-
special.lambertw(z[, k, tol])
1426+
special.lambertw(z)
14521427
---
14531428
title: |
14541429
zeta: Hurwitz $\zeta$ function
@@ -1462,7 +1437,7 @@ code: |
14621437
---
14631438
category: ['SciPy / Special Func', 'Convenience Functions']
14641439
setup: "from scipy import special, integrate, optimize, interpolate\nfrom scipy.integrate import odeint"
1465-
variables: {"n":2,"v":1.5,"x":1.5,"z":0.5,"alpha":0.5,"beta":0.5,"nt":5}
1440+
variables: {"n":2,"v":1.5,"x":1.5,"z":0.5,"alpha":0.5,"beta":0.5,"nt":5,"d":88,"m":60,"s":3600,"y":2.7182818284}
14661441
---
14671442
title: |
14681443
cbrt: $\sqrt[3]{x}$

0 commit comments

Comments
 (0)