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/triangle_and_circle.tex | 20 |
diff --git a/src/teaching/upp-2025/week06/tex/triangle_and_circle.tex b/src/teaching/upp-2025/week06/tex/triangle_and_circle.tex new file mode 100644 index 0000000..cf275fb --- /dev/null +++ b/src/teaching/upp-2025/week06/tex/triangle_and_circle.tex @@ -0,0 +1,20 @@ +% https://alfurka.github.io/quick-tikz/ +\def \triangleA {(-3.5,-2) -- (-0.5,3) -- (3,2) -- cycle} +\def \circleA {(1,-0.5) circle [radius=2]} + +\begin{tikzpicture}[background rectangle/.style={fill=white}, show background rectangle] + % Axis + \draw (-5,0) -- (5,0); + \draw (0,-5) -- (0,5); + \draw[step=1,gray,very thin] (-4.8,-4.8) grid (4.8,4.8); + + % Main shapes + \draw[blue] \triangleA; + \draw[red] \circleA; + + % Intersection + \begin{scope} + \clip \triangleA; + \draw[pattern=north east lines, even odd rule] \circleA \triangleA; + \end{scope} +\end{tikzpicture} |