Tikz – esempio 3
Benvenuti nell’esempio 3 di utilizzo del pacchetto Tikz, una risorsa utilissima del linguaggio per comporre immagini di altissima qualità. Segnaliamo anche il precedente Tikz – esempio 2 e il successivo Tikz – esempio 4 per ulteriore materiale.
Buona lettura!
Prima di ogni figura ricordare di mettere
\documentclass[usenames,dvipsnames]{article}
\usepackage{pgfplots}
Prima figura
Codice prima figura
\begin{tikzpicture}
\begin{axis}[
xtick = \empty,
ytick = \empty,
axis equal image,
axis x line=center,
axis y line=center,
xmin = -8,
xmax = 16,
ymin = -5,
ymax = 12,
xlabel = {$x$},
ylabel = {$y$},
extra x ticks = {0},
extra x tick label = {$\hspace{-0.2cm}0$},
y label style={anchor=north east}
]
\addplot[very thick,samples=100,domain=12:-12,,Purple] {x};
\addplot[mark=*,very thick,red] coordinates { (2,-2) (0,2) (10,10) (2,-2)};
\addplot[mark=*] coordinates {(2,-2)} node[below left] {$A$};
\addplot[mark=*] coordinates {(0,2)} node[below left] {$B$};
\addplot[mark=*] coordinates {(10,10)} node[below right] {$C=(x,x)$};
\end{axis}
\end{tikzpicture}
Seconda figura
Codice seconda figura
\begin{tikzpicture}
\begin{axis}[
xtick = \empty,
ytick = \empty,
axis equal image,
axis x line=center,
axis y line=center,
xmin = -5,
xmax = 4,
ymin = -4,
ymax = 4,
xlabel = {$x$},
ylabel = {$y$},
extra x ticks = {0},
extra x tick label = {$\hspace{0.4cm}0$},
y label style={anchor=north east}
]
\addplot[very thick,samples=100,domain=3:-3,,Purple] {x};
\addplot[mark=*,very thick,red] coordinates { (2,-2) (0,2) (-1,-1) (2,-2)};
\addplot[mark=*] coordinates {(2,-2)} node[below left] {$A$};
\addplot[mark=*] coordinates {(0,2)} node[below left] {$B$};
\addplot[mark=*] coordinates {(-1,-1)} node[above left] {$C=(-1,-1)$};
\end{axis}
\end{tikzpicture}
Terza figura
Codice terza figura
\begin{tikzpicture}
\begin{axis}[
xtick = \empty,
ytick = \empty,
axis equal image,
axis x line=center,
axis y line=center,
xmin = -4,
xmax = 6,
ymin = -4,
ymax = 4,
xlabel = {$x$},
ylabel = {$y$},
extra x ticks = {0},
extra x tick label = {$\hspace{0.4cm}0$},
y label style={anchor=north east}
]
\addplot[very thick,samples=100,domain=4:-2,,Purple] {x};
\addplot[mark=*,very thick,red] coordinates { (2,-2) (0,2) (2,2) (2,-2)};
\addplot[mark=*] coordinates {(2,-2)} node[below left] {$A$};
\addplot[mark=*] coordinates {(0,2)} node[below left] {$B$};
\addplot[mark=*] coordinates {(2,2)} node[below right] {$C=(2,2)$};
\end{axis}
\end{tikzpicture}
Quarta figura
Codice quarta figura
\begin{tikzpicture}
\begin{axis}[
xtick = \empty,
ytick = \empty,
axis equal image,
axis x line=center,
axis y line=center,
xmin = -7,
xmax = 10,
ymin = -7,
ymax = 7,
xlabel = {$x$},
ylabel = {$y$},
extra x ticks = {0},
extra x tick label = {$\hspace{0.4cm}0$},
y label style={anchor=north east}
]
\addplot[very thick,samples=100,domain=7:-5,,Purple] {x};
\addplot[mark=*,very thick,red] coordinates { (2,-2) (0,2) (4,4) (2,-2)};
\addplot[mark=*] coordinates {(2,-2)} node[below left] {$A$};
\addplot[mark=*] coordinates {(0,2)} node[below left] {$B$};
\addplot[mark=*] coordinates {(4,4)} node[below right] {$C=(4,4)$};
\end{axis}
\end{tikzpicture}
Quinta figura
Codice quinta figura
\begin{tikzpicture}
\begin{axis}[
xtick = \empty,
ytick = \empty,
axis equal image,
axis x line=center,
axis y line=center,
xmin = -8,
xmax = 4,
ymin = -4,
ymax = 4,
xlabel = {$x$},
ylabel = {$y$},
extra x ticks = {0},
extra x tick label = {$\hspace{0.4cm}0$},
y label style={anchor=north east}
]
\addplot[very thick,samples=100,domain=3.5:-4,,Purple] {x};
\addplot[mark=*,very thick,red] coordinates { (2,-2) (0,2) ({-sqrt(6)},{-sqrt(6)}) (2,-2)};
\addplot[mark=*] coordinates {(2,-2)} node[below left] {$A$};
\addplot[mark=*] coordinates {(0,2)} node[below left] {$B$};
\addplot[mark=*] coordinates {({-sqrt(6)},{-sqrt(6)})} node[above left] {$C=(-\sqrt{6},-\sqrt{6})$};
\end{axis}
\end{tikzpicture}
Sesta figura
Codice sesta figura
\begin{tikzpicture}
\begin{axis}[
xtick = \empty,
ytick = \empty,
axis equal image,
axis x line=center,
axis y line=center,
xmin = -4,
xmax = 8,
ymin = -4,
ymax = 7,
xlabel = {$x$},
ylabel = {$y$},
extra x ticks = {0},
extra x tick label = {$\hspace{0.4cm}0$},
y label style={anchor=north east}
]
\addplot[very thick,samples=100,domain=6:-3,,Purple] {x};
\addplot[mark=*,very thick,red] coordinates { (2,-2) (0,2) ({sqrt(6)},{sqrt(6)}) (2,-2)};
\addplot[mark=*] coordinates {(2,-2)} node[below left] {$A$};
\addplot[mark=*] coordinates {(0,2)} node[below left] {$B$};
\addplot[mark=*] coordinates {({sqrt(6)},{sqrt(6)})} node[below right] {$C=(\sqrt{6},\sqrt{6})$};
\end{axis}
\end{tikzpicture}
Risorse didattiche aggiuntive per approfondire la matematica
Leggi...
- Math Stack Exchange – Parte della rete Stack Exchange, questo sito è un forum di domande e risposte specificamente dedicato alla matematica. È una delle piattaforme più popolari per discutere e risolvere problemi matematici di vario livello, dall’elementare all’avanzato.
- Art of Problem Solving (AoPS) – Questo sito è molto noto tra gli studenti di matematica di livello avanzato e i partecipanti a competizioni matematiche. Offre forum, corsi online, e risorse educative su una vasta gamma di argomenti.
- MathOverflow – Questo sito è destinato a matematici professionisti e ricercatori. È una piattaforma per domande di ricerca avanzata in matematica. È strettamente legato a Math Stack Exchange ma è orientato a un pubblico con una formazione più avanzata.
- PlanetMath – Una comunità collaborativa di matematici che crea e cura articoli enciclopedici e altre risorse di matematica. È simile a Wikipedia, ma focalizzata esclusivamente sulla matematica.
- Wolfram MathWorld – Una delle risorse online più complete per la matematica. Contiene migliaia di articoli su argomenti di matematica, creati e curati da esperti. Sebbene non sia un forum, è una risorsa eccellente per la teoria matematica.
- The Math Forum – Un sito storico che offre un’ampia gamma di risorse, inclusi forum di discussione, articoli e risorse educative. Sebbene alcune parti del sito siano state integrate con altri servizi, come NCTM, rimane una risorsa preziosa per la comunità educativa.
- Stack Overflow (sezione matematica) – Sebbene Stack Overflow sia principalmente noto per la programmazione, ci sono anche discussioni rilevanti di matematica applicata, specialmente nel contesto della scienza dei dati, statistica, e algoritmi.
- Reddit (r/Math) – Un subreddit popolare dove si possono trovare discussioni su una vasta gamma di argomenti matematici. È meno formale rispetto ai siti di domande e risposte come Math Stack Exchange, ma ha una comunità attiva e molte discussioni interessanti.
- Brilliant.org – Offre corsi interattivi e problemi di matematica e scienza. È particolarmente utile per chi vuole allenare le proprie capacità di problem solving in matematica.
- Khan Academy – Una risorsa educativa globale con lezioni video, esercizi interattivi e articoli su una vasta gamma di argomenti di matematica, dalla scuola elementare all’università.