diff options
feat(teaching/upp-2025/w06): Add exercises
1 files changed, 20 insertions, 0 deletions
| -rw-r--r-- | src/teaching/upp-2025/week06/tex/two_circles.tex | 20 |
diff --git a/src/teaching/upp-2025/week06/tex/two_circles.tex b/src/teaching/upp-2025/week06/tex/two_circles.tex new file mode 100644 index 0000000..41a822c --- /dev/null +++ b/src/teaching/upp-2025/week06/tex/two_circles.tex @@ -0,0 +1,20 @@ +% https://alfurka.github.io/quick-tikz/ +\def \circleA {(0.5,0) circle [radius=1.5]} +\def \circleB {(0,-0.5) circle [radius=1.5]} + +\begin{tikzpicture}[scale=2,background rectangle/.style={fill=white}, show background rectangle] + % Axis + \draw (-2.5,0) -- (2.5,0); + \draw (0,-2.5) -- (0,2.5); + \draw[step=0.5,gray,very thin] (-2.4,-2.4) grid (2.4,2.4); + + % Main shapes + \draw[blue] \circleA; + \draw[red] \circleB; + + % Intersection + \begin{scope} + \clip \circleA; + \draw[pattern=crosshatch, even odd rule] \circleA \circleB; + \end{scope} +\end{tikzpicture} |