Skip to content

Commit 33fd261

Browse files
authored
Add links to DLMF and add some more plots (#1370)
Also adjust Alternatives tagging.
1 parent 46521af commit 33fd261

File tree

5 files changed

+24
-2
lines changed

5 files changed

+24
-2
lines changed

mathics/builtin/patterns/composite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Alternatives(InfixOperator, PatternObject):
3131
3232
<dl>
3333
<dt>'Alternatives'[$p_1$, $p_2$, ..., $p_i$]
34-
<dt>'$p_1$ | $p_2$ | ... | $p_i$'
34+
<dt>$p_1$ '|' $p_2$ '|' ... '|' $p_i$
3535
<dd>is a pattern that matches any of the patterns $p_1$, $p_2$, \
3636
...., $p_i$.
3737
</dl>

mathics/builtin/specialfns/bessel.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
"""
22
Bessel and Related Functions
3+
4+
See also <url>
5+
:Chapter 10 Bessel Functions in the Digital Library of Mathematical Functions:
6+
https://dlmf.nist.gov/10</url>.
37
"""
48

59
import mpmath
@@ -82,6 +86,9 @@ class AiryAiPrime(MPMathFunction):
8286
Numeric evaluation:
8387
>> AiryAiPrime[0.5]
8488
= -0.224911
89+
90+
>> Plot[AiryAiPrime[x], {x, -10, 10}]
91+
= -Graphics-
8592
"""
8693

8794
mpmath_name = ""
@@ -196,16 +203,19 @@ class AiryBiPrime(MPMathFunction):
196203
Numeric evaluation:
197204
>> AiryBiPrime[0.5]
198205
= 0.544573
206+
207+
>> Plot[AiryBiPrime[x], {x, -10, 2}]
208+
= -Graphics-
199209
"""
200210

201211
mpmath_name = ""
202-
sympy_name = "airybiprime"
203212

204213
rules = {
205214
"Derivative[1][AiryBiPrime]": "(#1 AiryBi[#1])&",
206215
}
207216

208217
summary_text = "derivative of the Airy's function Bi"
218+
sympy_name = "airybiprime"
209219

210220
def get_mpmath_function(self, args):
211221
return lambda x: mpmath.airybi(x, derivative=1)

mathics/builtin/specialfns/elliptic.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
finding the arc length of an ellipse.
99
1010
These functions often are used in cryptography to encode and decode messages.
11+
12+
See also <url>
13+
:Chapter 19 Elliptic Integrals in the Digital Library of Mathematical Functions:
14+
https://dlmf.nist.gov/19</url>.
1115
"""
1216

1317
import sympy

mathics/builtin/specialfns/erf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
"""
44
Error Function and Related Functions
5+
6+
See also <url>
7+
:Chapter 7 Error Functions, Dawson's and Fresnel Integrals:
8+
https://dlmf.nist.gov/7</url>.
59
"""
610

711

mathics/builtin/specialfns/gamma.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
"""
22
Gamma and Related Functions
3+
4+
See also <url>
5+
:Chapter 5 Gamma Function in the Digital Library of Mathematical Functions:
6+
https://dlmf.nist.gov/5</url>.
37
"""
48

59
import sys

0 commit comments

Comments
 (0)