Debian Codegraph @

texmf-dist/doc/latex/glossaries/samples/sampleEq.tex

raw
1 % This file is public domain
2 % If you want to use arara you need the following directives:
3 % arara: pdflatex
4 % arara: makeglossaries
5 % arara: pdflatex
6 %
7 %http://mirrors.ctan.org/macros/latex/contrib/glossaries/glossaries-user.html#sampleEq
8 \documentclass[a4paper,12pt]{report}
9
10 \usepackage{amsmath}
11 \usepackage[colorlinks]{hyperref}
12 \usepackage[xindy,toc,ucmark,style=long3colheader,counter=equation]{glossaries}
13
14 \makeglossaries
15
16 \newcommand{\erf}{\operatorname{erf}}
17 \newcommand{\erfc}{\operatorname{erfc}}
18
19 \pagestyle{headings}
20
21 % redefine the way hyperref creates the target for equations
22 % so that the glossary links to equation numbers work
23
24 \renewcommand*\theHequation{\theHchapter.\arabic{equation}}
25
26 % Change the glossary headings
27
28 \renewcommand{\entryname}{Notation}
29 \renewcommand{\descriptionname}{Function Name}
30 \renewcommand{\pagelistname}{Number of Formula}
31
32 % Change the width of the number list column:
33 \setlength{\glspagelistwidth}{0.75\textwidth}
34
35 % define glossary entries
36
37 \newglossaryentry{Gamma}{name=\ensuremath{\Gamma(z)},
38 description=Gamma function,
39 sort=Gamma}
40
41 \newglossaryentry{gamma}{name={\ensuremath{\gamma(\alpha,x)}},
42 description=Lower incomplete gamma function,
43 sort=gamma1}
44
45 \newglossaryentry{iGamma}{name={\ensuremath{\Gamma(\alpha,x)}},
46 description=Upper incomplete gamma function,
47 sort=Gamma2}
48
49 \newglossaryentry{psi}{name=\ensuremath{\psi(x)},
50 description=Psi function,sort=psi}
51
52 \newglossaryentry{erf}{name=\ensuremath{\erf(x)},
53 description=Error function,sort=erf}
54
55 \newglossaryentry{erfc}{name=\ensuremath{\erfc},
56 description=Complementary error function,sort=erfc}
57
58 \newglossaryentry{B}{name={\ensuremath{B(x,y)}},
59 description=Beta function,sort=B}
60
61 \newglossaryentry{Bx}{name={\ensuremath{B_x(p,q)}},
62 description=Incomplete beta function,sort=Bx}
63
64 \newglossaryentry{Tn}{name=\ensuremath{T_n(x)},
65 description=Chebyshev's polynomials of the first kind,sort=Tn}
66
67 \newglossaryentry{Un}{name=\ensuremath{U_n(x)},
68 description=Chebyshev's polynomials of the second kind,sort=Un}
69
70 \newglossaryentry{Hn}{name=\ensuremath{H_n(x)},
71 description=Hermite polynomials,sort=Hn}
72
73 \newglossaryentry{Ln}{name=\ensuremath{L_n^\alpha(x)},
74 description=Laguerre polynomials,sort=Lna}
75
76 \newglossaryentry{Znu}{name=\ensuremath{Z_\nu(z)},
77 description=Bessel functions,sort=Z}
78
79 \newglossaryentry{Phi}{name={\ensuremath{\Phi(\alpha,\gamma;z)}},
80 description=confluent hypergeometric function,sort=Pagz}
81
82 \newglossaryentry{knu}{name=\ensuremath{k_\nu(x)},
83 description=Bateman's function,sort=kv}
84
85 \newglossaryentry{Dp}{name=\ensuremath{D_p(z)},
86 description=Parabolic cylinder functions,sort=Dp}
87
88 \newglossaryentry{F}{name={\ensuremath{F(\phi,k)}},
89 description=Elliptical integral of the first kind,sort=Fpk}
90
91 \newglossaryentry{C}{name=\ensuremath{C},
92 description=Euler's constant,sort=C}
93
94 \newglossaryentry{G}{name=\ensuremath{G},
95 description=Catalan's constant,sort=G}
96
97 \begin{document}
98 \title{A Sample Document Using glossaries.sty}
99 \author{Nicola Talbot}
100 \maketitle
101
102 \begin{abstract}
103 This is a sample document illustrating the use of the \textsf{glossaries}
104 package. The functions here have been taken from ``Tables of
105 Integrals, Series, and Products'' by I.S.~Gradshteyn and I.M~Ryzhik.
106 The glossary is a list of special functions, so
107 the equation number has been used rather than the page number. This
108 can be done using the \texttt{counter=equation} package
109 option.
110 \end{abstract}
111
112 \printglossary[title={Index of Special Functions and Notations}]
113
114 \chapter{Gamma Functions}
115
116 \begin{equation}
117 \gls{Gamma} = \int_{0}^{\infty}e^{-t}t^{z-1}\,dt
118 \end{equation}
119
120 \verb|\ensuremath| is only required here if using
121 hyperlinks.
122 \begin{equation}
123 \glslink{Gamma}{\Gamma(x+1)} = x\Gamma(x)
124 \end{equation}
125
126 \begin{equation}
127 \gls{gamma} = \int_0^x e^{-t}t^{\alpha-1}\,dt
128 \end{equation}
129
130 \begin{equation}
131 \gls{iGamma} = \int_x^\infty e^{-t}t^{\alpha-1}\,dt
132 \end{equation}
133
134 \newpage
135
136 \begin{equation}
137 \gls{Gamma} = \Gamma(\alpha, x) + \gamma(\alpha, x)
138 \end{equation}
139
140 \begin{equation}
141 \gls{psi} = \frac{d}{dx}\ln\Gamma(x)
142 \end{equation}
143
144 \chapter{Error Functions}
145
146 \begin{equation}
147 \gls{erf} = \frac{2}{\surd\pi}\int_0^x e^{-t^2}\,dt
148 \end{equation}
149
150 \begin{equation}
151 \gls{erfc} = 1 - \erf(x)
152 \end{equation}
153
154 \chapter{Beta Function}
155
156 \begin{equation}
157 \gls{B} = 2\int_0^1 t^{x-1}(1-t^2)^{y-1}\,dt
158 \end{equation}
159 Alternatively:
160 \begin{equation}
161 \gls{B} = 2\int_0^{\frac\pi2}\sin^{2x-1}\phi\cos^{2y-1}\phi\,d\phi
162 \end{equation}
163
164 \begin{equation}
165 \gls{B} = \frac{\Gamma(x)\Gamma(y)}{\Gamma(x+y)} = B(y,x)
166 \end{equation}
167
168 \begin{equation}
169 \gls{Bx} = \int_0^x t^{p-1}(1-t)^{q-1}\,dt
170 \end{equation}
171
172 \chapter{Polynomials}
173
174 \section{Chebyshev's polynomials}
175
176 \begin{equation}
177 \gls{Tn} = \cos(n\arccos x)
178 \end{equation}
179
180 \begin{equation}
181 \gls{Un} = \frac{\sin[(n+1)\arccos x]}{\sin[\arccos x]}
182 \end{equation}
183
184 \section{Hermite polynomials}
185
186 \begin{equation}
187 \gls{Hn} = (-1)^n e^{x^2} \frac{d^n}{dx^n}(e^{-x^2})
188 \end{equation}
189
190 \section{Laguerre polynomials}
191
192 \begin{equation}
193 L_n^{\alpha} (x) = \frac{1}{n!}e^x x^{-\alpha}
194 \frac{d^n}{dx^n}(e^{-x}x^{n+\alpha})
195 \end{equation}
196
197 \chapter{Bessel Functions}
198
199 Bessel functions $Z_\nu$ are solutions of
200 \begin{equation}
201 \frac{d^2\glslink{Znu}{Z_\nu}}{dz^2}
202 + \frac{1}{z}\,\frac{dZ_\nu}{dz} +
203 \left( 1-\frac{\nu^2}{z^2}Z_\nu = 0 \right)
204 \end{equation}
205
206 \chapter{Confluent hypergeometric function}
207
208 \begin{equation}
209 \gls{Phi} = 1 + \frac{\alpha}{\gamma}\,\frac{z}{1!}
210 + \frac{\alpha(\alpha+1)}{\gamma(\gamma+1)}\,\frac{z^2}{2!}
211 +\frac{\alpha(\alpha+1)(\alpha+2)}{\gamma(\gamma+1)(\gamma+2)}\,
212 \frac{z^3}{3!} + \cdots
213 \end{equation}
214
215 \begin{equation}
216 \gls{knu} = \frac{2}{\pi}\int_0^{\pi/2}
217 \cos(x \tan\theta - \nu\theta)\,d\theta
218 \end{equation}
219
220 \chapter{Parabolic cylinder functions}
221
222 \begin{equation}
223 \gls{Dp} = 2^{\frac{p}{2}}e^{-\frac{z^2}{4}}
224 \left\{
225 \frac{\surd\pi}{\Gamma\left(\frac{1-p}{2}\right)}
226 \Phi\left(-\frac{p}{2},\frac{1}{2};\frac{z^2}{2}\right)
227 -\frac{\sqrt{2\pi}z}{\Gamma\left(-\frac{p}{2}\right)}
228 \Phi\left(\frac{1-p}{2},\frac{3}{2};\frac{z^2}{2}\right)
229 \right\}
230 \end{equation}
231
232 \chapter{Elliptical Integral of the First Kind}
233
234 \begin{equation}
235 \gls{F} = \int_0^\phi \frac{d\alpha}{\sqrt{1-k^2\sin^2\alpha}}
236 \end{equation}
237
238 \chapter{Constants}
239
240 \begin{equation}
241 \gls{C} = 0.577\,215\,664\,901\ldots
242 \end{equation}
243
244 \begin{equation}
245 \gls{G} = 0.915\,965\,594\ldots
246 \end{equation}
247
248 \end{document}