blob: 5a9cd02e927da6b9e07e14d177aac48f1af08e1a (
plain) (
blame)
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
|
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mathshit}[2020/04/04 Math Shit]
\RequirePackage{framed}
\DeclareMathOperator{\dif}{d \!}
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
\newcommand{\dist}[2]{\norm{#1 - #2}}
\makeatletter
\newenvironment{sqcases}{%
\matrix@check\sqcases\env@sqcases
}{%
\endarray\right.%
}
\def\env@sqcases{%
\let\@ifnextchar\new@ifnextchar
\left\lbrack
\def\arraystretch{1.2}%
\array{@{}l@{\quad}l@{}}%
}
\makeatother
\DeclareRobustCommand{\divby}{%
\mathrel{\vbox{\baselineskip.65ex\lineskiplimit0pt\hbox{.}\hbox{.}\hbox{.}}}%
}
\newcommand{\dmquestion}[1]{
\begin{center} \textbf{#1} \end{center}
}
\newcommand{\br}[1]{\left( #1 \right)}
\newcommand{\brac}[2]{ \br{ \frac{#1}{#2} } }
\newcommand{\dbrac}[2]{ \br{ \dfrac{#1}{#2} } }
\newcommand*{\qed}{\hfill\ensuremath{\blacksquare}}
\newcommand*{\qedempty}{\hfill\ensuremath{\square}}
\newcommand{\explain}[1]{
\begin{bmatrix}
#1
\end{bmatrix}
}
\newcommand{\probability}[1]{\mathrm{Pr} \left[ #1 \right]}
\newcommand{\expected}[1]{\mathrm{E} \left[ #1 \right]}
\newcommand{\todo}{\texttt{todo!}}
\newcommand{\osmall}[1]{\overline{o}\left( #1 \right)}
\newcommand{\symdiff}{\ \triangle \ }
|