Skip to content

Commit de0728c

Browse files
authored
Documentation updates (#476)
* Add reference links to functions * Move DLMF links in overview to paragraphs In functions_overview.md, Documenter.jl picks up section headers for permalinks. Move the links to their own paragraphs. * Add import for installation * Add DLMF section names to links Two links to DLMF share the same text, disambiguate by using the sections they're pointing to. * Remove redundant latex newline * Fix indents * Correct latex sequences * Add link text to bare urls * Wrap lines * Change latex sequence * Update spacing * Refactor links to Base * Mark code syntax * Add equation/section numbers to DLMF links The equation number in the anchor text helps more easily identify links, and can help in navigation. TODO: do something for the Wikipedia links? * Fix exponent notation in LaTeX * Add DOI to reference * Fix spacing * Use raw_str for latex containing docstrings * Fix indent * Split method docstrings for erf * Add backticks * Add doc raw"" for easier LaTeX escaping * Use subscripts in latex * Remove redundant \operatorname Most TeX engines recognize \ln and \log * Fix backtick and backslash use * Remove asterisk stars from tex * Add sections to function list * Partial revert of 71f7e42 Remove `erf(::Real)` method used for docstring, and add `erf(::Real, ::Real)` for docs page * Remove internal function from docs API reference * Use `\mathrm` for integrating variable in latex
1 parent c400278 commit de0728c

File tree

15 files changed

+727
-410
lines changed

15 files changed

+727
-410
lines changed

docs/make.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ makedocs(modules=[SpecialFunctions],
88
format = Documenter.HTML(; assets = String[]),
99
pages=["Home" => "index.md",
1010
"Overview" => "functions_overview.md",
11-
"Reference" => "functions_list.md"])
11+
"Reference" => "functions_list.md"],
12+
#warnonly=[:missing_docs],
13+
)
1214

1315
deploydocs(repo="github.com/JuliaMath/SpecialFunctions.jl.git")

docs/src/functions_list.md

Lines changed: 146 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,150 @@
44
CurrentModule = SpecialFunctions
55
```
66

7-
```@autodocs
8-
Modules = [SpecialFunctions]
9-
Order = [:module, :type, :function]
7+
8+
## Gamma Function
9+
10+
```@docs
11+
gamma
12+
loggamma
13+
logabsgamma
14+
loggamma1p
15+
logfactorial
16+
digamma
17+
invdigamma
18+
trigamma
19+
polygamma
20+
gamma_inc
21+
gamma_inc_inv
22+
loggammadiv
23+
gammax
24+
rgammax
25+
rgamma1pm1
26+
gamma_inc_asym
27+
gamma_inc_cf
28+
gamma_inc_fsum
29+
gamma_inc_minimax
30+
gamma_inc_taylor
31+
gamma_inc_taylor_x
32+
gamma_inc_temme
33+
gamma_inc_temme_1
34+
gamma_inc_inv_psmall
35+
gamma_inc_inv_qsmall
36+
gamma_inc_inv_alarge
37+
auxgam
38+
```
39+
40+
### Beta Function
41+
```@docs
42+
beta
43+
logbeta
44+
logabsbeta
45+
logabsbinomial
46+
beta_inc
47+
beta_inc_inv
48+
ncbeta
49+
ncbeta_poisson
50+
ncbeta_tail
51+
beta_inc_power_series1
52+
beta_inc_power_series2
53+
beta_inc_asymptotic_asymmetric
54+
beta_inc_asymptotic_symmetric
55+
beta_inc_power_series
56+
beta_inc_diff
57+
beta_inc_cont_fraction
58+
beta_integrand
59+
```
60+
61+
### Utilities
62+
63+
```@docs
64+
chepolsum
65+
lambdaeta
66+
stirling_corr
67+
stirling_error
68+
esum
69+
coeff1
70+
coeff2
71+
coeff3
72+
ncF
73+
```
74+
75+
## Exponential and Trigonometric Integrals
76+
77+
```@docs
78+
expint
79+
expinti
80+
expintx
81+
sinint
82+
cosint
83+
```
84+
85+
## Error Functions, Dawson’s and Fresnel Integrals
86+
87+
```@docs
88+
erf
89+
erf(::Real, ::Real)
90+
erfc
91+
logerf
92+
erfcinv
93+
erfcx
94+
logerfc
95+
logerfcx
96+
erfi
97+
erfinv
98+
dawson
99+
faddeeva
100+
```
101+
102+
## Airy and Related Functions
103+
104+
```@docs
105+
airyai
106+
airyaiprime
107+
airybi
108+
airybiprime
109+
airyaix
110+
airyaiprimex
111+
airybix
112+
airybiprimex
113+
```
114+
115+
## Bessel Functions
116+
117+
```@docs
118+
besselj
119+
besselj0
120+
besselj1
121+
besseljx
122+
sphericalbesselj
123+
bessely
124+
bessely0
125+
bessely1
126+
besselyx
127+
sphericalbessely
128+
besselh
129+
besselhx
130+
hankelh1
131+
hankelh1x
132+
hankelh2
133+
hankelh2x
134+
besseli
135+
besselix
136+
besselk
137+
besselkx
138+
jinc
139+
```
140+
141+
## Elliptic Integrals
142+
143+
```@docs
144+
ellipk
145+
ellipe
146+
```
147+
148+
## Zeta and Related Functions
149+
150+
```@docs
151+
eta
152+
zeta
10153
```

docs/src/functions_overview.md

Lines changed: 91 additions & 73 deletions
Large diffs are not rendered by default.

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ The latest version of the package is available for Julia versions 1.3
1515
and up. To install it, run the following at the Julia REPL:
1616

1717
```julia
18-
Pkg.add("SpecialFunctions")
18+
import Pkg; Pkg.add("SpecialFunctions")
1919
```

0 commit comments

Comments
 (0)