-
Notifications
You must be signed in to change notification settings - Fork 4
/
mathsym.tex
133 lines (122 loc) · 3.9 KB
/
mathsym.tex
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
\usepackage{dirtytalk}
\usepackage[normalem]{ulem}
\usepackage{tikz-cd}
\usepackage{units}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{alltt}
\usepackage{mathrsfs}
\usepackage{amssymb}
\usepackage{amsmath}
\DeclareMathOperator\cis{cis}
\newenvironment{rcases}
{\left.\begin{aligned}}
{\end{aligned}\right\rbrace}
% (font shortcuts)
\usepackage{amsfonts}
\newcommand{\mb}[1]{\mathbb{#1}}
\newcommand{\mc}[1]{\mathcal{#1}}
\newcommand{\ms}[1]{\mathscr{#1}}
\newcommand{\mf}[1]{\frak{#1}}
% (arrow shortcuts)
\newcommand{\ra}{\rightarrow}
\newcommand{\lra}{\longrightarrow}
\newcommand{\la}{\leftarrow}
\newcommand{\lla}{\longleftarrow}
\newcommand{\Ra}{\Rightarrow}
\newcommand{\Lra}{\Longrightarrow}
\newcommand{\La}{\Leftarrow}
\newcommand{\Lla}{\Longleftarrow}
\newcommand{\lr}{\leftrightarrow}
\newcommand{\llr}{\longleftrightarrow}
\newcommand{\Lr}{\Leftrightarrow}
\newcommand{\Llr}{\Longleftrightarrow}
\newcommand{\ua}{\uparrow}
\newcommand{\da}{\downarrow}
\newcommand{\Ua}{\Uparrow}
\newcommand{\Da}{\Downarrow}
% (match parenthesis)
\newcommand{\mlr}[1]{\left|#1\right|}
\newcommand{\plr}[1]{\left(#1\right)}
\newcommand{\blr}[1]{\left[#1\right]}
\newcommand{\nlr}[1]{\mlr{\mlr{#1}}}
\newcommand{\nlrp}[2]{\nlr{#1}_{#2}}
% (exponent shortcuts)
\newcommand{\inv}{^{-1}}
\newcommand{\nrt}[2]{\sqrt[\leftroot{-2}\uproot{2}#1]{#2}}
% (annotation shortcuts)
\newcommand{\conj}[1]{\overline{#1}}
\newcommand{\ol}[1]{\overline{#1}}
\newcommand{\ul}[1]{\underline{#1}}
\newcommand{\os}[2]{\overset{#1}{#2}}
\newcommand{\us}[2]{\underset{#1}{#2}}
\newcommand{\ob}[2]{\overbrace{#2}^{#1}}
\newcommand{\ub}[2]{\underbrace{#2}_{#1}}
\newcommand{\bs}{\backslash}
\newcommand{\ds}{\displaystyle}
% (set builder)
\newcommand{\set}[1]{\left\{ #1 \right\}}
\newcommand{\setc}[2]{\left\{ #1 : #2 \right\}}
\newcommand{\setm}[2]{\left\{ #1 \, \middle| \, #2 \right\}}
\newcommand{\Cp}[2]{C^{#1}(#2)}
\newcommand{\Cb}[3]{C^{#1}{[}#2,#3{]}}
\newcommand{\Cpb}[3]{C^{#1}({[}#2,#3{]})}
%\newcommand{\C}[3]{\Cb{#1}{#2}{#3}}
% (group generator)
\newcommand{\gen}[1]{\left\langle #1 \right\rangle}
% (functions)
\newcommand{\im}[1]{\text{im}(#1)}
\newcommand{\range}[1]{\text{range}(#1)}
\newcommand{\domain}[1]{\text{domain}(#1)}
\newcommand{\dist}[1]{(#1)}
\newcommand{\sgn}{\text{sgn}}
% (sums)
\newcommand{\lset}[2]{#2_1,\dots,#2_{#1}}
\newcommand{\lsum}[2]{#2_1+\dots+#2_{#1}}
\newcommand{\norm}[3]{|#2_1|^{#1}+\dots+|#2_{#3}|^{#1}}
\newcommand{\norms}[4]{\sum_{#2=1}^{#4}|#3_{#2}|^{#1}}
\newcommand{\lc}[3]{#2_1#3_1+\dots+#2_{#1}#3_{#1}}
\newcommand{\lcs}[4]{\sum_{#4=1}^{#1}#2_{#4}#3_{#4}}
% (Linear Algebra)
\newcommand{\mat}[1]{\begin{bmatrix}#1\end{bmatrix}}
\newcommand{\pmat}[1]{\begin{pmatrix}#1\end{pmatrix}}
%\newcommand{\dim}[1]{\text{dim}(#1)}
\newcommand{\rnk}[1]{\text{rank}(#1)}
\newcommand{\nul}[1]{\text{nul}(#1)}
\newcommand{\spn}[1]{\text{span}\,#1}
\newcommand{\col}[1]{\text{col}(#1)}
%\newcommand{\ker}[1]{\text{ker}(#1)}
\newcommand{\row}[1]{\text{row}(#1)}
\newcommand{\area}[1]{\text{area}(#1)}
\newcommand{\nullity}[1]{\text{nullity}(#1)}
\newcommand{\proj}[2]{\text{proj}_{#1}\left(#2\right)}
\newcommand{\diam}[1]{\text{diam}\,#1}
% (Vectors common)
\newcommand{\myvec}[1]{\vec{#1}}
\newcommand{\va}{\myvec{a}}
\newcommand{\vb}{\myvec{b}}
\newcommand{\vc}{\myvec{c}}
\newcommand{\vd}{\myvec{d}}
\newcommand{\ve}{\myvec{e}}
\newcommand{\vf}{\myvec{f}}
\newcommand{\vg}{\myvec{g}}
\newcommand{\vh}{\myvec{h}}
\newcommand{\vi}{\myvec{i}}
\newcommand{\vj}{\myvec{j}}
\newcommand{\vk}{\myvec{k}}
\newcommand{\vl}{\myvec{l}}
\newcommand{\vm}{\myvec{m}}
\newcommand{\vn}{\myvec{n}}
\newcommand{\vo}{\myvec{o}}
\newcommand{\vp}{\myvec{p}}
\newcommand{\vq}{\myvec{q}}
\newcommand{\vr}{\myvec{r}}
\newcommand{\vs}{\myvec{s}}
\newcommand{\vt}{\myvec{t}}
\newcommand{\vu}{\myvec{u}}
\newcommand{\vv}{\myvec{v}}
\newcommand{\vw}{\myvec{w}}
\newcommand{\vx}{\myvec{x}}
\newcommand{\vy}{\myvec{y}}
\newcommand{\vz}{\myvec{z}}
\newcommand{\vzero}{\myvec{0}}