-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmacros.tex
More file actions
104 lines (81 loc) · 2.78 KB
/
macros.tex
File metadata and controls
104 lines (81 loc) · 2.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
% Differentiation
% https://tex.stackexchange.com/a/60546/
\newcommand{\Diff}{\mathop{}\!\mathrm{d}}
\newcommand{\DiffFrac}[2]{\frac{\Diff #1}{\Diff #2}}
\newcommand{\DiffOp}[1]{\frac{\Diff}{\Diff #1}}
\newcommand{\Ndiff}[1]{\mathop{}\!\mathrm{d}^{#1}}
\newcommand{\NdiffFrac}[3]{\frac{\Ndiff{#1} #2}{\Diff {#3}^{#1}}}
\newcommand{\NdiffOp}[2]{\frac{\Ndiff{#1}}{\Diff {#2}^{#1}}}
% Evaluation
\newcommand{\LEvalAt}[2]{\left.#1\right\vert_{#2}}
\newcommand{\SqEvalAt}[2]{\left[#1\right]_{#2}}
% Epsilon & Phi
\renewcommand{\epsilon}{\varepsilon}
\renewcommand{\phi}{\varphi}
% Sets
\newcommand{\NN}{\mathbb{N}}
\newcommand{\ZZ}{\mathbb{Z}}
\newcommand{\QQ}{\mathbb{Q}}
\newcommand{\RR}{\mathbb{R}}
\newcommand{\CC}{\mathbb{C}}
\newcommand{\PP}{\mathbb{P}}
\renewcommand{\emptyset}{\varnothing}
% Probabililty
\DeclareMathOperator{\Cov}{Cov}
\DeclareMathOperator{\Corr}{Corr}
\DeclareMathOperator{\Var}{Var}
\DeclareMathOperator{\Expt}{E}
\DeclareMathOperator{\Prob}{P}
% Distribution
\DeclareMathOperator{\Binomial}{B}
\DeclareMathOperator{\Poisson}{Po}
\DeclareMathOperator{\Normal}{N}
\DeclareMathOperator{\Exponential}{Exp}
\DeclareMathOperator{\Geometric}{Geo}
\DeclareMathOperator{\Uniform}{U}
% Complex Numbers
\DeclareMathOperator{\im}{Im}
\DeclareMathOperator{\re}{Re}
% Missing Trigonometric & Hyperbolic functions
\DeclareMathOperator{\arccot}{arccot}
\DeclareMathOperator{\arcsec}{arcsec}
\DeclareMathOperator{\arccsc}{arccsc}
\DeclareMathOperator{\sech}{sech}
\DeclareMathOperator{\csch}{csch}
\DeclareMathOperator{\arsinh}{arsinh}
\DeclareMathOperator{\arcosh}{arcosh}
\DeclareMathOperator{\artanh}{artanh}
\DeclareMathOperator{\arcoth}{arcoth}
\DeclareMathOperator{\arsech}{arsech}
\DeclareMathOperator{\arcsch}{arcsch}
% UK Notation
\DeclareMathOperator{\cosec}{cosec}
\DeclareMathOperator{\arccosec}{arccosec}
\DeclareMathOperator{\cosech}{cosech}
\DeclareMathOperator{\arcosech}{arcosech}
% Paired Delimiters
\DeclarePairedDelimiter{\ceil}{\lceil}{\rceil}
\DeclarePairedDelimiter{\floor}{\lfloor}{\rfloor}
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
\DeclarePairedDelimiter{\ang}{\langle}{\rangle}
% Vectors
\newcommand{\vect}[1]{\mathbf{#1}}
\newcommand{\bvect}[1]{\overrightarrow{#1}}
% https://tex.stackexchange.com/a/28213
% \DeclareMathSymbol{\ii}{\mathalpha}{letters}{"10}
% \DeclareMathSymbol{\jj}{\mathalpha}{letters}{"11}
% \newcommand{\ihat}{\vect{\hat{\ii}}}
% \newcommand{\jhat}{\vect{\hat{\jj}}}
\newcommand{\ihat}{\textbf{\^{ı}}}
\newcommand{\jhat}{\textbf{\^{ȷ}}}
\newcommand{\khat}{\vect{\hat{k}}}
% Other Functions
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\tr}{tr}
% Other Math Symbols
\DeclareMathOperator{\modulo}{mod}
\newcommand{\divides}{\mid}
\newcommand{\notdivides}{\nmid}
\newcommand{\LHS}{\text{LHS}}
\newcommand{\RHS}{\text{RHS}}
\newcommand{\degree}{^{\circ}}