Debian Codegraph @

texmf-dist/doc/latex/math-operator/math-operator-user-guide.tex

raw
1 %%
2 %% This is file `math-operator-user-guide.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% math-operator-code.dtx (with options: `user')
8 %%
9 %% This file is from version 1.3a of the free and open-source
10 %% LaTeX package "math-operator," released September 2025.
11 %%
12 %% Copyright 2025 Conrad Kosowsky
13 %%
14 %% This file may be used, distributed, and modified under the
15 %% terms of the LaTeX Public Project License, version 1.3c or
16 %% any later version. The most recent version of this license
17 %% is available online at
18 %%
19 %% https://www.latex-project.org/lppl/
20 %%
21 %% This work has the LPPL status "maintained," and the current
22 %% maintainer is the package author, Conrad Kosowsky. He can
23 %% be reached at [email protected].
24 %%
25 %% PLEASE KNOW THAT THIS FREE SOFTWARE IS PROVIDED WITHOUT
26 %% ANY WARRANTY. SPECIFICALLY, THE "NO WARRANTY" SECTION OF
27 %% THE LATEX PROJECT PUBLIC LICENSE STATES THE FOLLOWING:
28 %%
29 %% THERE IS NO WARRANTY FOR THE WORK. EXCEPT WHEN OTHERWISE
30 %% STATED IN WRITING, THE COPYRIGHT HOLDER PROVIDES THE WORK
31 %% `AS IS’, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
32 %% OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
33 %% WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
34 %% PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
35 %% OF THE WORK IS WITH YOU. SHOULD THE WORK PROVE DEFECTIVE,
36 %% YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR
37 %% CORRECTION.
38 %%
39 %% IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED
40 %% TO IN WRITING WILL THE COPYRIGHT HOLDER, OR ANY AUTHOR
41 %% NAMED IN THE COMPONENTS OF THE WORK, OR ANY OTHER PARTY
42 %% WHO MAY DISTRIBUTE AND/OR MODIFY THE WORK AS PERMITTED
43 %% ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL,
44 %% SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT
45 %% OF ANY USE OF THE WORK OR OUT OF INABILITY TO USE THE WORK
46 %% (INCLUDING, BUT NOT LIMITED TO, LOSS OF DATA, DATA BEING
47 %% RENDERED INACCURATE, OR LOSSES SUSTAINED BY ANYONE AS A
48 %% RESULT OF ANY FAILURE OF THE WORK TO OPERATE WITH ANY
49 %% OTHER PROGRAMS), EVEN IF THE COPYRIGHT HOLDER OR SAID
50 %% AUTHOR OR SAID OTHER PARTY HAS BEEN ADVISED OF THE
51 %% POSSIBILITY OF SUCH DAMAGES.
52 %%
53 %% For more information, see the LaTeX Project Public License.
54 %% Derivative works based on this software may come with their
55 %% own license or terms of use, and the package author is not
56 %% responsible for any third-party software.
57 %%
58 %% Happy TeXing!
59 %%
60 \documentclass[12pt,twoside]{article}
61 \makeatletter
62 \usepackage[margin=72.27pt]{geometry}
63 \usepackage[factor=700,stretch=14,shrink=14,step=1]{microtype}
64 \usepackage{booktabs}
65 \usepackage{tabularx}
66 \usepackage{enumitem}
67 \setlist{topsep=\smallskipamount,itemsep=\z@,
68 parsep=0pt,partopsep=0pt}
69 \usepackage[colorlinks=true,allcolors=blue,implicit=false]{hyperref}
70 \usepackage{amssymb}
71 \usepackage{graphicx}
72 \usepackage{multicol}
73 \usepackage{shortvrb}
74 \MakeShortVerb{|}
75 \def\meta#1{$\langle${\rmfamily\itshape #1}$\rangle$}
76
77 \c@topnumber=1
78 \c@bottomnumber=1
79
80 \def\showop#1#2#3{\noindent
81 \hbox to 1.625in{\texttt{\string#1}\hfil}\hbox to 1.625in{#2\hfil}\hbox to 3.25in{#3\hfil}%
82 \par}
83 \topsep=\smallskipamount
84
85 \begin{document}
86
87 \def\documentname{User Guide}
88 \newdimen\MacroIndent
89 \input math-operator-heading.tex
90 \def\section#1#2{\@@section*{#1}\vskip-\medskipamount#2\par\bigskip}
91
92 \noindent \LaTeX\ users will no doubt be familiar with the control sequences that produce special functions and operators such as |\sin|, |\cos|, or |\sup|. However, the \LaTeX\ kernel defines only about 30 such commands, and many less common but still widely used special functions remain undefined as a result. The \textsf{math-operator} package addresses this situation by defining control sequences for some hundred and fifty special functions and operators, divided into nine groups, and the package also provides an interface to define even more. The first pages of this user guide describe how to use the package, and the rest of the document lists the control sequences in each group. For documentation of the package code, please see |math-operator_code.pdf|, which is included with the \textsf{math-operator} installation and is available on \textsc{ctan}. I encourage users who are interested in this package to also consult the \textsf{amsopn} and \textsf{moremath} packages as they may be more useful for you.\footnote{\LaTeX3 Project and American Mathematical Society, ``amsopn---Typeset mathematical operator names,'' \href{https://ctan.org/pkg/amsopn}{\texttt{https://ctan.org/pkg/amsopn}}; Marcel Ilg, ``moremath---Additional commands for typesetting maths,'' \href{https://ctan.org/pkg/moremath}{\texttt{https://ctan.org/pkg/moremath}}.} Users who are looking specifically for operators in quantum mechanics should consult the \textsf{linop} and \textsf{phfqit} packages.\footnote{Johannes Weytjens, ``linop---Typeset linear operators as they appear in quantum theory or linear algebra,'' \href{https://ctan.org/pkg/linop}{\texttt{https://ctan.org/pkg/linop}}; Philippe Faist, ``phfqit---Macros for typesetting Quantum Information Theory,'' \href{https://ctan.org/pkg/phfqit}{\texttt{https://ctan.org/pkg/phfqit}}.}
93
94 Users can load \textsf{math-operator} with the standard |\usepackage| syntax, and for each operator group, the package defines either all or no control sequences from that group during loading. Each operator group corresponds to two optional package arguments---one argument means define the control sequences of that group, and the other argument means avoid doing so. Table~1 lists the nine operator groups and their corresponding arguments. For every group, the package argument to define control sequences is a shortened version of the group name, and the package argument to avoid doing so is the same keyword prefaced by |no-|. By default, \textsf{math-operator} defines all control sequences that appear later in this document.
95
96 \begin{figure}[tb]
97 \centerline{\bfseries\strut Table 1: Optional Arguments for \textsf{math-operator}}
98 \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}lll}\toprule
99 Group & To define commands (default) & To avoid defining commands\\\midrule
100 Blackboard bold & |blackboard| & |no-blackboard|\\
101 Category theory & |category| & |no-category|\\
102 Jacobi elliptic functions & |jacobi| & |no-jacobi|\\
103 Linear algebra & |linear| & |no-linear|\\
104 The command \vrb\overbar & |overbar| & |no-overbar|\\
105 Probability distributions & |probability| & |no-probability|\\
106 Special functions & |special| & |no-special|\\
107 Standard math operators & |standard| & |no-standard|\\
108 Trigonometric functions & |trigonometry| & |no-trigonometry|\\\bottomrule
109 \end{tabular*}
110 \end{figure}
111
112 \begin{figure}[t]
113 \centerline{\bfseries\strut Table 2: Commands to Define New Operators}
114 \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}lll}\toprule
115 & Medium weight & Bold weight\\\midrule
116 Treated as \vrb\mathord & |\DeclareMathText| & |\DeclareBoldMathText|\\
117 Treated as \vrb\mathop & |\DeclareMathOperator| & |\DeclareBoldMathOperator|\\\bottomrule
118 \end{tabular*}
119 \end{figure}
120
121 Users who want to create their own operators or redefine the commands in this package should use one of the four control sequences in Table~2. The entries in Table~2 should appear only in the document preamble, and their syntax is identical and looks like
122 \begin{trivlist}
123 \item\ttfamily\hskip2em |\DeclareMathOperator|\meta{optional |*|}|{|%
124 \meta{control sequence}|}{|\meta{operator text}|}|
125 \end{trivlist}
126 When you use one of these macros, \textsf{math-operator} defines the \meta{control sequence} to produce \meta{operator text} in math mode. The optional asterisk controls the placement of superscripts and subscripts. Without an asterisk (the default version of the command), any superscripts and subscripts will render normally, but with an asterisk, they will appear above and below the operator. For example, to make a control sequence |\erf| for the error function, the |sty| file for \textsf{math-operator} contains
127 \begin{trivlist}
128 \item \ttfamily \hskip 2em |\DeclareMathOperator{\erf}{erf}|
129 \end{trivlist}
130 The syntax and implementation of these macros is very similar to the \textsf{amsopn} package.
131
132 The entries of Table~2 differ in the appearance of the resulting operator. The commands in the first column produce operators with medium text, and the commands in the second column produce operators with bold text. The difference between the rows is more subtle and boils down to the automatic spacing before and after the operator.\footnote{\TeX's eight classes of math subformulas are beyond the scope of this user guide, but in summary, the horizontal position of different characters in an equation depends on their math classes. See Donald Knuth, \textit{The \TeX book} (Addison Wesley, 1986), 170; David Salomon, \textit{The Advanced \TeX book} (Springer, 1995), 256–258.} The macros from the first row instruct \TeX\ to treat the operator like an ordinary variable, so they are most appropriate for sets and categories. The macros from the second row instruct \TeX\ to horizontally position the operator like a summation or integral sign, and they are appropriate for functions and probability distributions. But if you are not fastidious, for most uses of this package other than category theory, you will probably be fine to just use |\DeclareMathOperator|.
133
134 The macros in Table~2 will happily redefine any operator commands, but they will not overwrite other control sequences unless you specifically tell them to do so. The count variable |\operatordefmode| controls the package behavior in this regard as follows:
135 \begin{itemize}
136 \item Negative: redefine the control sequence
137 \item 0: silently ignore (message written in the |log| file)
138 \item 1: issue a warning and do not redefine
139 \item 2 or greater: raise an error
140 \end{itemize}
141 By default, \textsf{math-operator} sets |\operatordefmode| to 1, so you will see a warning on the terminal or console if you try to convert a control sequence that is already defined into a math operator. However, if you really want to redefine a control sequence to be a math operator, you can say
142 \begin{trivlist}
143 \item \hskip 2em\ttfamily |\operatordefmode=-1|
144 \end{trivlist}
145 before calling a command from Table~2.
146
147 One operator group warrants additional explanation. The package argument |overbar| corresponds to the single control sequence |\overbar|, which adds a horizontal line above a math subformula. The line will be wider than |\bar| but narrower than |\overline|, and the syntax is
148 \begin{trivlist}
149 \item\hskip2em\ttfamily |\overbar|\meta{optional $*$}|[|\meta{optional decimal}|]{|\meta{math}|}|
150 \end{trivlist}
151 The \meta{decimal} should be between 0 and 1, and it controls the width of the overline. Specifically, |\overbar| typesets \meta{math}, creates a horizontal line that is \meta{decimal} times the width of the math subformula, and places the line above the typeset subformula. By default, \meta{decimal} is 0.8. With an asterisk, |\overbar| positions the overline halfway over the subformula. For example, the code
152 \begin{trivlist}
153 \item \hskip 2em\ttfamily |\overbar*[0.9]{xyz}|
154 \end{trivlist}
155 will put an overline above $xyz$ that is 90\% the length of $xyz$ and position it exactly halfway between the start of the $x$ and the end of the $z$.
156
157 When |\overbar| does not have an asterisk (the default version of the command), the count variable |\overbaroffset| controls the horizontal placement of the line.\footnote{Version 1.0 of this package used \vrb\operatorbaroffset\ instead of \vrb\overbaroffset. To preserve backwards compatibility, \vrb\operatorbaroffset\ still works for this purpose. But please don't use \vrb\operatorbaroffset\ because I may take it out in a few years.} As is standard in \TeX, this variable should take values between 0 and 1000, and \textsf{math-operator} divides |\overbaroffset| by 1000 to form a fraction. It then places the overline that fraction of the way across the top of the subformula. The default value is 800. For example, saying
158 \begin{trivlist}
159 \item \hskip 2em\ttfamily |\overbaroffset=0|
160 \end{trivlist}
161 will make all following |\overbar| lines appear completely on the left side of the subformula, and an asterisk is equivalent to setting |\overbaroffset| to 500.
162
163
164 Some operator names contain characters that are not letters, and \textsf{math-operator} provides three control sequences for non-letter characters: |\operatorhyphen| produces a hyphen, |\operatorsquared| produces a superscript 2, and |\operatorinverse| produces a superscript $-1$. If you use a Unicode font for the operator font, \textsf{math-operator} typesets these symbols in the operator font, and inside the bold commands from Table~2, they will be bold. Additionally, each command has a starred version that forces the characters to be bold no matter where they appear in an equation. If you do not use a Unicode font, the hyphen and the squared symbol will work the same way, but |\operatorinverse| instead typesets the contents of |\defaultinverse|, which is normally $-1$, without using the operator font and without using boldface in the starred version of the command.\footnote{This complication arises because the minus sign lives in different places depending on the encoding. In Unicode, the minus sign is U+2212, but that is not true for other font encodings in \TeX.} If you are in this situation and are unsatisfied with the formatting of your $-1$ expressions, I encourage you to redefine |\defaultinverse| to be more to your liking with |\def| or |\renewcommand|.
165
166 A word about superscripts: I implemented the commands from Table~2 in a way that \TeX\ treats operator names as subformulas. This means that any super or subscripts will always appear after or above or below the operator, even if you end the operator name with a super or subscript. For example, if you define an inverse projection map as
167 \begin{trivlist}
168 \item \hskip 2em |\DeclareMathOperator{\projinv}{proj\operatorinverse}|
169 \end{trivlist}
170 in your document preamble and then attach a subscript as in
171 \begin{trivlist}
172 \item\hskip2em |\projinv_x|
173 \end{trivlist}
174 you will see $\mathop{\operator@font proj^{-1}}_x$ instead of $\mathop{\operator@font proj}^{-1}_x$. If your operator name ends with a super or subscript, I recommend putting everything before the final super or subscript into the appropriate command from Table~2 and then defining a separate macro using |\def| or |\newcommand|. For example, it is better to define an inverse projection map as
175 \begin{trivlist}
176 \item\hskip2em |\def\projinv{\proj\operatorinv}|
177 \end{trivlist}
178 rather than using |\DeclareMathOperator|. I took this approach in designing \textsf{math-operator}, so to redefine operators from this package that end in superscripts, you should use |\def| or |\renewcommand| instead of a control sequence from Table~2.
179
180 Finally, because it may redefine |\P|, \textsf{math-operator} defines |\pilcrow| to typeset the \P\ symbol in text and math modes.
181
182 \bigskip
183
184 \centerline{***}
185
186 \vskip-\bigskipamount
187 \vskip-\medskipamount
188 \vskip\z@
189
190 \section{Blackboard Bold}{Note: to use the blackboard-bold commands listed here, you must load a package that defines \vrb\mathbb\space such as \textsf{amssymb} or \textsf{mathfont}, and if you do not do so before using these control sequences, you'll get an error. I am assuming that \vrb\mathbb\space provides access to blackboard-bold letters.}
191
192 \showop\N{$\mathbb N$}{Natural numbers}
193 \showop\Z{$\mathbb Z$}{Integers}
194 \showop\Q{$\mathbb Q$}{Rational numbers}
195 \showop\R{$\mathbb R$}{Real numbers}
196 \showop\C{$\mathbb C$}{Complex numbers}
197 \showop\H{$\mathbb H$}{Quaternions (or half-plane)\footnotemark}\footnotetext{In math mode only. Outside of equations, \vrb\H\ will still behave normally. If you want to change the \vrb\H\ operator somehow, you should redefine \vrb\mathH, not \vrb\H.}
198 \showop\O{$\mathbb O$}{Octonions\footnotemark}\footnotetext{In math mode only. Outside of equations, \vrb\O\ will still behave normally. If you want to change the \vrb\O\ operator somehow, you should redefine \vrb\mathO, not \vrb\O.}
199 \showop\F{$\mathbb F$}{Arbitrary field}
200 \showop\P{$\mathbb P$}{Probability}
201 \showop\E{$\mathbb E$}{Expectation}
202
203 \section{Categories}{In version 1.3, I doubled the number of control sequences in \textsf{math-operator} for category theory, so this list is fairly substantial. That being said, it by no means exhaustive, and serious category theorists who use this package will likely need to define more categories using \vrb\DeclareBoldMathText.}
204
205 \showop{\Ab}{\textbf{Ab}}{Category of abelian groups}
206 \showop{\Alg}{\textbf{Alg}}{Category of algebras}
207 \showop{\Bialg}{\textbf{Bialg}}{Category of bialgebras}
208 \showop{\Cat}{\textbf{Cat}}{Category of small categories}
209 \showop{\CGH}{\textbf{CGH}}{Compactly generated Hausdorff spaces}
210 \showop{\CGWH}{\textbf{CGWH}}{Compactly generated weak Hausdorff spaces}
211 \showop{\Coalg}{\textbf{Coalg}}{Category of coalgebras}
212 \showop{\Comod}{\textbf{Comod}}{Category of comodules}
213 \showop{\CRing}{\textbf{CRing}}{Category of commutative rings}
214 \showop{\Field}{\textbf{Field}}{Category of fields}
215 \showop{\FinGrp}{\textbf{FinGrp}}{Category of finite groups}
216 \showop{\FinHilb}{\textbf{FinHilb}}{Category of finite-dimensional Hilbert spaces}
217 \showop{\FinVect}{\textbf{FinVect}}{Category of finite-dimensional vector spaces}
218 \showop{\FinSet}{\textbf{FinSet}}{Category of finite sets}
219 \showop{\Frm}{\textbf{Frm}}{Category of frames}
220 \showop{\Grp}{\textbf{Grp}}{Category of groups}
221 \showop{\Haus}{\textbf{Haus}}{Category of Hausdorff spaces}
222 \showop{\HeytAlg}{\textbf{HeytAlg}}{Category of Heyting algebras}
223 \showop{\Hilb}{\textbf{Hilb}}{Category of Hilbert spaces}
224 \showop{\HopfAlg}{\textbf{HopfAlg}}{Category of Hopf algebras}
225 \showop{\Lat}{\textbf{Lat}}{Category of latices}
226 \showop{\LieAlg}{\textbf{LieAlg}}{Category of Lie algebras}
227 \showop{\LieGrp}{\textbf{LieGrp}}{Category of Lie groups}
228 \showop{\Loc}{\textbf{Loc}}{Category of locales}
229 \showop{\Man}{\textbf{Man}}{Category of manifolds}
230 \showop{\Mat}{\textbf{Mat}}{Category of matrices}
231 \showop{\Met}{\textbf{Met}}{Category of metric spaces}
232 \showop{\Mod}{\textbf{Mod}}{Category of modules}
233 \showop{\Mon}{\textbf{Mon}}{Category of monoids}
234 \showop{\Ord}{\textbf{Ord}}{Category of preordered sets}
235 \showop{\Pos}{\textbf{Pos}}{Category of posets}
236 \showop{\Rel}{\textbf{Rel}}{Category of sets and binary relations}
237 \showop{\Ring}{\textbf{Ring}}{Category of rings}
238 \showop{\Set}{\textbf{Set}}{Category of sets}
239 \showop{\Top}{\textbf{Top}}{Category of topological spaces}
240 \showop{\Topos}{\textbf{Topos}}{Category of toposes}
241 \showop{\Vect}{\textbf{Vect}}{Category of vector spaces}
242 \showop{\cocone}{cocone}{Cocone}
243 \showop{\colim}{colim}{Colimit}
244 \showop{\cone}{cone}{Cone}
245 \showop{\Ho}{Ho}{Homotopy category}
246 \showop{\Hom}{Hom}{Collection of morphisms}
247 \showop{\Ob}{Ob}{Collection of objects}
248 \showop{\op}{$^{\operator@font op}$}{Opposite category}
249 \showop{\PSh}{PSh}{Presheaf category}
250 \showop{\Sh}{Sh}{Sheaf category}
251
252 \section{Jacobi Elliptic Functions}{Pretty straightforward. If you load \textsf{math-operator} with |jacobi|, you won't be able to use \vrb\sc\ to change to a small-caps font. (But you shouldn't use \vrb\sc\ anyway because it's deprecated. Please use \vrb\textsc\ instead.)}
253
254 \showop{\cd}{cd}{}
255 \showop{\cn}{cn}{}
256 \showop{\cs}{cs}{}
257 \showop{\dc}{dc}{}
258 \showop{\dn}{dn}{}
259 \showop{\ds}{ds}{}
260 \showop{\nc}{nc}{}
261 \showop{\nd}{nd}{}
262 \showop{\ns}{ns}{}
263 \showop{\sc}{sc}{}
264 \showop{\sd}{sd}{}
265 \showop{\sn}{sn}{}
266
267 \section{Linear Algebra}{Some matrix groups and operations.}
268
269 \showop{\adj}{adj}{Adjugate matrix}
270 \showop{\Cl}{Cl}{Clifford algebra}
271 \showop{\codim}{codim}{Codimension}
272 \showop{\coker}{coker}{Cokernel}
273 \showop{\GL}{GL}{General linear group}
274 \showop{\nullity}{nullity}{Nullity}
275 \showop{\Orthogonal}{O}{Orthogonal group}
276 \showop{\Pin}{Pin}{Pin group}
277 \showop{\proj}{proj}{Projection (onto a vector)}
278 \showop{\rank}{rank}{Rank}
279 \showop{\SL}{SL}{Special linear group}
280 \showop{\SO}{SO}{Special orthogonal group}
281 \showop{\SU}{SU}{Special unitary group}
282 \showop{\Sp}{Sp}{Symplectic group}
283 \showop{\spanop}{span}{Span}
284 \showop{\Spin}{Spin}{Spin group}
285 \showop{\tr}{tr}{Trace}
286 \showop{\T}{$^{\operator@font T}$}{Transpose}
287 \showop{\Unitary}{U}{Unitary group}
288
289 \section{Overlining}{Loading \textsf{math-operator} with the |overbar| option tells the package to define \vrb\overbar. Below are two examples of this macro with \vrb\bar\space and \vrb\overline\space for comparison.}
290
291 \def\showbars#1#2#3#4{%
292 \noindent
293 \hb@xt@ 0.25\textwidth{#1\hfil}%
294 \hb@xt@ 0.25\textwidth{#2\hfil}%
295 \hb@xt@ 0.25\textwidth{#3\hfil}%
296 \hb@xt@ 0.25\textwidth{#4\hfil}\par}
297
298 \showbars{\texttt{\string\bar\ a}}{$\bar a$}
299 {\texttt{\string\bar\ X}}{$\bar X$}
300
301 \showbars{\texttt{\string\overbar\ a}}
302 {\setbox\@tempboxa\hbox{%
303 \setbox\@tempboxa\hbox{$a$}%
304 \@tempdima\wd\@tempboxa
305 \@tempdimb\ht\@tempboxa
306 \hb@xt@\z@{\box\@tempboxa\hss}%
307 \hskip 0.16\@tempdima
308 $\overline{\vrule height \@tempdimb width \z@ depth \z@
309 \hskip 0.8\@tempdima}\m@th$}%
310 \box\@tempboxa}
311 {\texttt{\string\overbar\ X}}
312 {\setbox\@tempboxa\hbox{%
313 \setbox\@tempboxa\hbox{$X$}%
314 \@tempdima\wd\@tempboxa
315 \@tempdimb\ht\@tempboxa
316 \rlap{\box\@tempboxa}%
317 \hskip 0.16\@tempdima
318 $\overline{\vrule height \@tempdimb width \z@ depth \z@
319 \hskip 0.8\@tempdima}\m@th$}%
320 \box\@tempboxa}
321
322 \showbars{\texttt{\string\overline\ a}}{$\overline a$}
323 {\texttt{\string\overline\ X}}{$\overline X$}
324
325 \section{Probability Distributions}{A selection of the most common probability distributions. For the normal distribution, if you type \vrb\Normal\ without the asterisk, you will see $\mathcal N$, and if you include the asterisk after \vrb\Normal, then \textsf{math-operator} will write out ``Normal.''}
326
327 \showop{\Bernoulli}{Bernoulli}{}
328 \showop{\Betaop}{Beta}{}
329 \showop{\Binomial}{Binomial}{}
330 \showop{\Boltzmann}{Boltzmann}{}
331 \showop{\Burr}{Burr}{}
332 \showop{\Categorical}{Categorical}{}
333 \showop{\Cauchy}{Cauchy}{}
334 \showop{\ChiSq}{$\chi^2$}{Chi-squared}
335 \showop{\Dagum}{Dagum}{}
336 \showop{\Exponential}{Exponential}{}
337 \showop{\Erlang}{Erlang}{}
338 \showop{\Gammaop}{Gamma}{}
339 \showop{\Gompertz}{Gompertz}{}
340 \showop{\InvChiSq}{Inv-$\chi^2$}{Inverse chi-squared}
341 \showop{\InvGamma}{Inv-Gamma}{Inverse gamma}
342 \showop{\Kolmogorov}{Kolmogorov}{}
343 \showop{\LogLogistic}{Log-Logistic}{}
344 \showop{\LogNormal}{Log-Normal}{}
345 \showop{\Logistic}{Logistic}{}
346 \showop{\Lomax}{Lomax}{}
347 \showop{\MaxwellBoltzmann}{Maxwell-Boltzmann}{}
348 \showop{\Multinomial}{Multinomial}{}
349 \showop{\NegBinomial}{Neg-Binomial}{Negative binomial}
350 \showop{\Normal\meta{optional $*$}}{$\mathcal N$ or Normal}{}
351 \showop{\Pareto}{Pareto}{}
352 \showop{\Poisson}{Poisson}{}
353 \showop{\Weibull}{Weibull}{}
354 \showop{\Zipf}{Zipf}{}
355
356 \section{Special Functions}{Common special functions from applied math.}
357
358 \showop{\Ai}{Ai}{Airy function of the first kind}
359 \showop{\Bi}{Bi}{Airy function of the second kind}
360 \showop{\Ci}{Ci}{Cosine integral function}
361 \showop{\ci}{ci}{Cosine integral function (variant)}
362 \showop{\Chiop}{Chi}{Hyperbolic cosine integral function}
363 \showop{\Ei}{Ei}{Exponential integral function}
364 \showop{\erf}{erf}{Error function}
365 \showop{\erfinv}{erf$^{-1}$}{Inverse error function}
366 \showop{\erfc}{erfc}{Complementary error function}
367 \showop{\erfcinv}{erfc$^{-1}$}{Inverse complementary error function}
368 \showop{\Li}{Li}{Polylogarithm function}
369 \showop{\li}{li}{Logarithmic integral function}
370 \showop{\Log}{Log}{Logarithm (principal value)}
371 \showop{\sgn}{sgn}{Sign function}
372 \showop{\Si}{Si}{Sine integral function}
373 \showop{\si}{si}{Sine integral function (variant)}
374 \showop{\Shi}{Shi}{Hyperbolic sine integral function}
375
376 \section{Standard Operators}{Common mathematical operations. More pure mathy than the special functions.}
377
378 \showop{\argmax}{arg$\,$max}{Arguments of the maxima}
379 \showop{\argmin}{arg$\,$min}{Arguments of the minima}
380 \showop{\Aut}{Aut}{Automorphism group}
381 \showop{\c}{$^{\begingroup\operator@font c\endgroup}$}{Complement\footnotemark}\footnotetext{In math mode only. Outside of equations, \vrb\c\ will still behave normally. If you want to change the \vrb\c\ operator somehow, you should redefine \vrb\mathc, not \vrb\c.}
382 \showop{\cf}{cf}{Cofinality}
383 \showop{\cl}{cl}{Closure}
384 \showop{\conv}{conv}{Convex hull}
385 \showop{\corr}{corr}{Correlation}
386 \showop{\cov}{cov}{Covariance}
387 \showop{\curl}{curl}{Curl}
388 \showop{\divop}{div}{Divergence}
389 \showop{\Ext}{Ext}{Ext (extension) functor}
390 \showop{\Gal}{Gal}{Galois group}
391 \showop{\grad}{grad}{Gradient}
392 \showop{\Hess}{$\mathcal{H}$}{Hessian}
393 \showop{\id}{id}{Identity}
394 \showop{\Im}{Im}{Imaginary part}
395 \showop{\varIm}{$\Im$}{Imaginary part\footnotemark}\footnotetext{In the \LaTeX\ kernel, \texttt{\string\Im} produces $\Im$, but I decided to change that since Im is more standard than $\Im$.}
396 \showop{\img}{img}{Image}
397 \showop{\Info}{$\mathcal{I}$}{Fisher Information}
398 \showop{\interior}{int}{Interior}
399 \showop{\lcm}{lcm}{Least common multiple}
400 \showop{\Proj}{Proj}{Projective spectrum}
401 \showop{\Re}{Re}{Real part}
402 \showop{\varRe}{$\Re$}{Real part\footnotemark}\footnotetext{In the \LaTeX\ kernel, \texttt{\string\Re} produces $\Re$, but I decided to change that since Re is more standard than $\Re$.}
403 \showop{\Res}{Res}{Residue}
404 \showop{\Spec}{Spec}{Spectrum}
405 \showop{\st}{st}{Standard part (shadow) of a hyperreal number}
406 \showop{\supp}{supp}{Support}
407 \showop{\Tor}{Tor}{Tor (torsion) functor}
408 \showop{\Var}{Var}{Variance}
409
410 \section{Trigonometry}{All inverse, hyperbolic, and inverse hyperbolic trigonometric functions that are not in the \LaTeX\ kernel.}
411
412 \showop{\csch}{csch}{Hyperbolic cosecant}
413 \showop{\sech}{sech}{Hyperbolic secant}
414 \showop{\arccsc}{arccsc}{Inverse cosecant}
415 \showop{\arcsec}{arcsec}{Inverse secant}
416 \showop{\arccot}{arccot}{Inverse cotangent}
417 \showop{\arcsinh}{arcsinh}{Inverse hyperbolic sine}
418 \showop{\arccosh}{arccosh}{Inverse hyperbolic cosine}
419 \showop{\arctanh}{arctanh}{Inverse hyperbolic tangent}
420 \showop{\arccsch}{arccsch}{Inverse hyperbolic cosecant}
421 \showop{\arcsech}{arcsech}{Inverse hyperbolic secant}
422 \showop{\arccoth}{arccoth}{Inverse hyperbolic tangent}
423 \showop{\arsinh}{arsinh}{Inverse hyperbolic sine}
424 \showop{\arcosh}{arcosh}{Inverse hyperbolic cosine}
425 \showop{\artanh}{artanh}{Inverse hyperbolic tangent}
426 \showop{\arcsch}{arcsch}{Inverse hyperbolic cosecant}
427 \showop{\arsech}{arsech}{Inverse hyperbolic secant}
428 \showop{\arcoth}{arcoth}{Inverse hyperbolic cotangent}
429 \showop{\sininv}{sin$^{-1}$}{Inverse sine}
430 \showop{\cosinv}{cos$^{-1}$}{Inverse cosine}
431 \showop{\taninv}{tan$^{-1}$}{Inverse tangent}
432 \showop{\cscinv}{csc$^{-1}$}{Inverse cosecant}
433 \showop{\secinv}{sec$^{-1}$}{Inverse secant}
434 \showop{\cotinv}{cot$^{-1}$}{Inverse cotangent}
435 \showop{\sinhinv}{sinh$^{-1}$}{Inverse hyperbolic sine}
436 \showop{\coshinv}{cosh$^{-1}$}{Inverse hyperbolic cosine}
437 \showop{\tanhinv}{tanh$^{-1}$}{Inverse hyperbolic tangent}
438 \showop{\cschinv}{csch$^{-1}$}{Inverse hyperbolic cosecant}
439 \showop{\sechinv}{sech$^{-1}$}{Inverse hyperbolic secant}
440 \showop{\cothinv}{coth$^{-1}$}{Inverse hyperbolic cotangent}
441
442 \end{document}
443 \endinput
444 %%
445 %% End of file `math-operator-user-guide.tex'.