Programming in
-
Fixed template of function definition: $$ N: \left{\begin{array}{ccc} H&\to&\mathbb{R}^+\ x&\mapsto&\lVert x\rVert\
\end{array}\right.
$$
\begin{equation*}
N: \left\{\begin{array}{ccc}
H&\to&\mathbb{R}^+\\
x&\mapsto&\norm{x}\\
\end{array}\right.
\end{equation*}
we may abstract a environment or function to gain generality.
- Optional argument in
\newcommand
or\def
\newcommand{\norm}[1]{\left\Vert #1 \right\Vert}
but with various kinds of norms, \norm[]{}
.
- Calculation and control flow in
$\LaTeX_{2\varepsilon}$