]> gitweb.michael.orlitzky.com - mjotex.git/blobdiff - examples.tex
New \restrict macro to restrict a function to a subset of its domain.
[mjotex.git] / examples.tex
index f922d655715645da0e00309d1fb7973f7f4b3c51..c7959732d44ce74297d43c228dd90ae267dd255a 100644 (file)
   \end{section}
 
   \begin{section}{Common}
-    The function $f$ applied to $x$ is $f\of{x}$. We can group terms
-    like $a + \qty{b - c}$ or $a + \qty{b - \sqty{c - d}}$. Here's a
-    set $\set{1,2,3} = \setc{n \in \Nn[1]}{ n \le 3 }$. The tuples go
-    up to seven, for now:
+    The function $f$ applied to $x$ is $f\of{x}$, and the restriction
+    of $f$ to a subset $X$ of its domain is $\restrict{f}{X}$. We can
+    group terms like $a + \qty{b - c}$ or $a + \qty{b - \sqty{c -
+        d}}$. The tuples go up to seven, for now:
     %
     \begin{itemize}
       \begin{item}
   \end{section}
 
   \begin{section}{Set theory}
-    The cardinality of the set $X \coloneqq \set{1,2,3}$ is $\card{X}
-    = 3$, and its powerset is $\powerset{X}$.
+    Here's a set $\set{1,2,3} = \setc{n \in \Nn[1]}{ n \le 3 }$. The
+    cardinality of the set $X \coloneqq \set{1,2,3}$ is $\card{X} =
+    3$, and its powerset is $\powerset{X}$.
 
     We also have a few basic set operations, for example the union of
     two or three sets: $\union{A}{B}$, $\unionthree{A}{B}{C}$. And of