a

Menu

M

Chiudi

Tikz – esempio 7

Immagini matematica

Home » Tikz – esempio 7

Tikz – esempio 7

Benvenuti nel nostro esempio 7 di utilizzo del pacchetto Tikz, una risorsa utilissima del linguaggio \LaTeX per comporre immagini di altissima qualità. In questo articolo proponiamo un esempio di utilizzo. Segnaliamo anche il precedente Tikz – esempio 6 e il successivo Tikz – esempio 8 per ulteriore materiale.

Buona lettura!

 

Prima di ogni figura ricordare di mettere

\documentclass[usenames,dvipsnames]{article}
\usepackage{pgfplots}

Prima figura

Rendered by QuickLaTeX.com

codice prima figura

\begin{tikzpicture}
\begin{axis}[
width = 0.7\textwidth,
height = 0.7\textwidth,
xtick = \empty,
ytick = \empty,
axis on top,
axis equal image,
axis x line=center,
axis y line=center,
xmin = -3.5,
xmax = 3.5,
ymin = -3.5,
ymax = 3.5,
xlabel = {$x$},
ylabel = {$y$},
ylabel style={anchor=north east},
extra x ticks = {0},
extra x tick label = {$\hspace{0.4cm}O$},
disabledatascaling,
]
\draw[thick,red,fill=YellowOrange] (axis cs:0,0) ellipse [x radius=2, y radius=1,rotate=180];
\addplot[mark=*] coordinates {(2,0)} node[below right] {$(2,0)$};
\addplot[mark=*] coordinates {(-2,0)} node[below left] {$(-2,0)$};
\addplot[mark=*] coordinates {(0,1)} node[above right] {$(0,1)$};
\addplot[mark=*] coordinates {(0,-1)} node[below right] {$(-1,0)$};
\end{axis}
\end{tikzpicture}

seconda figura

Rendered by QuickLaTeX.com

codice figura

\begin{tikzpicture}
\begin{axis}[
width = 0.7\textwidth,
height = 0.7\textwidth,
xtick = \empty,
ytick = \empty,
axis on top,
axis equal image,
axis x line=center,
axis y line=center,
xmin = -3.5,
xmax = 4.5,
ymin = -3.5,
ymax = 3.5,
xlabel = {$x$},
ylabel = {$y$},
ylabel style={anchor=north east},
extra x ticks = {0},
extra x tick label = {$\hspace{0.4cm}O$},
disabledatascaling,
]
\addplot[mark=*,red] coordinates {(0,0) (-1,{sqrt(3)/2})};
\addplot[mark=*,red] coordinates {(0,0) (-1,- {sqrt(3)/2})};
\addplot[mark=*,red] coordinates {(0,0) (-2,0)};
\addplot[mark=*,red] coordinates {(0,0) (2,0)};
\draw[thick,red] (axis cs:0,0) ellipse [x radius=2, y radius=1,rotate=180];
\draw (axis cs:-1,1.4) node[red] {$t=\frac{2}{3}\pi$};
\draw (axis cs:-1,-1.4) node[red] {$t=\frac{4}{3}\pi$};
\draw (axis cs:-2.6,0.4) node[red] {$t=\pi$};
\draw (axis cs:2.8,0.4) node[red] {$t=0,\,\pi$};
\end{axis}
\end{tikzpicture}

terza figura

Rendered by QuickLaTeX.com

codice terza figura

\begin{tikzpicture}
\begin{axis}[
width = 0.7\textwidth,
height = 0.7\textwidth,
xtick = \empty,
ytick = \empty,
axis on top,
axis equal image,
axis x line=center,
axis y line=center,
xmin = -3.5,
xmax = 4.5,
ymin = -3.5,
ymax = 3.5,
xlabel = {$x$},
ylabel = {$y$},
ylabel style={anchor=north east},
extra x ticks = {0},
extra x tick label = {$\hspace{0.4cm}O$},
disabledatascaling,
]
\addplot[mark=*,red] coordinates {(0,0) (-1,{sqrt(3)/2})};
\addplot[mark=*,red] coordinates {(0,0) (-1,- {sqrt(3)/2})};
\addplot[mark=*,red] coordinates {(0,0) (-2,0)};
\addplot[mark=*,red] coordinates {(0,0) (2,0)};
\draw[thick,red,fill=YellowOrange] (axis cs:0,0) ellipse [x radius=2, y radius=1,rotate=180];
\draw (axis cs:-1,1.4) node[red] {$t=\frac{2}{3}\pi$};
\draw (axis cs:-1,-1.4) node[red] {$t=\frac{4}{3}\pi$};
\draw (axis cs:-2.6,0.4) node[red] {$t=\pi$};
\draw (axis cs:2.8,0.4) node[red] {$t=0,\,\pi$};
\end{axis}
\end{tikzpicture}

quarta figura

Rendered by QuickLaTeX.com

codice quarta figura

\begin{tikzpicture}
\begin{axis}[
width = 0.7\textwidth,
height = 0.7\textwidth,
axis on top ,
xtick = \empty,
ytick = \empty,
axis equal image,
axis x line=center,
axis y line=center,
xmin = -6,
xmax = 6,
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[mark=*,very thick,red] coordinates { (-1,-1) (-1,4) (1.5,-1)(-1,-1)};
\addplot[mark=*] coordinates {(-1,-1)} node[below left] {$B=(-1,-1)$};
\addplot[mark=*] coordinates {(-1,4)} node[below left] {$A=(-1,4)$};
\addplot[mark=*] coordinates {(1.5,-1)} node[below right] {$\,\,C=(1.5,-1)$};
\addplot[very thick,dashed,samples=100,domain=3:-3,red,,name path=retta 1] {-2*x+2};
\addplot[very thick,samples=100,domain=3:-3,red,dashed,,name path=retta 2] {-1};
\addplot[very thick,red,dashed] coordinates { (-1,4) (-1,6)};
\addplot[very thick,red,dashed] coordinates { (-1,-1) (-1,-5)};
\addplot[TealBlue!30] fill between[of=retta 1 and retta 2, soft clip={domain=-1:1.5}];
\end{axis}
\end{tikzpicture}

quinta figura

Rendered by QuickLaTeX.com

codice quinta figura

\begin{tikzpicture}
\begin{axis}[
width = 0.7\textwidth,
height = 0.7\textwidth,
xtick = \empty,
ytick = \empty,
axis on top ,
xtick = \empty,
ytick = \empty,
axis equal image,
axis x line=center,
axis y line=center,
xmin = -6,
xmax = 6,
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[mark=*,very thick,red] coordinates { (-1,-1) (-1,4) (1.5,-1)(-1,-1)};
\draw (axis cs:0.9,1.6) node[rotate=0] {$L_2$};
\draw (axis cs:-1.5 ,1.4) node[rotate=0] {$L_3$};
\draw (axis cs:0.4,-1.6) node[rotate=0] {$L_1$};
\end{axis}
\end{tikzpicture}

sesta figura

Rendered by QuickLaTeX.com

codice sesta figura

\begin{tikzpicture}
\begin{axis}[
width = 0.7\textwidth,
height = 0.7\textwidth,
xtick = \empty,
ytick = \empty,
axis on top ,
xtick = \empty,
ytick = \empty,
axis equal image,
axis x line=center,
axis y line=center,
xmin = -6,
xmax = 6,
ymin = -4,
ymax = 7,
xlabel = {$x$},
ylabel = {$y$},
extra x tick label = {$\hspace{0.4cm}0$},
y label style={anchor=north east}
]
\addplot[mark=*,very thick,red] coordinates { (-1,-1) (-1,4) (1.5,-1)(-1,-1)};
\addplot[mark=*] coordinates {(-1,-1)} node[below left] {$B$};
\addplot[mark=*] coordinates {(-1,4)} node[below left] {$A$};
\addplot[mark=*] coordinates {(1.5,-1)} node[below right] {$C$};
\addplot[very thick,dashed,samples=100,domain=-1:1,red,,name path=retta 1] {-2*x+2};
\addplot[very thick,samples=100,domain=-1:1.5,red,dashed,,name path=retta 2] {-1};
\addplot[TealBlue!30] fill between[of=retta 1 and retta 2, soft clip={domain=-1:1.5}];
\addplot[mark=*] coordinates {(0,1)} node[below left] {$P_1$};
\addplot[mark=*] coordinates {(0.5,-1)} node[below right] {$P_2$};
\end{axis}
\end{tikzpicture}

settima figura

Rendered by QuickLaTeX.com

codice settima figura

\begin{tikzpicture}
\begin{axis}[
width = 0.7\textwidth,
height = 0.7\textwidth,
xtick = \empty,
ytick = \empty,
axis on top,
axis equal image,
axis x line=center,
axis y line=center,
xmin = -2,
xmax = 2,
ymin = -2,
ymax = 2,
xlabel = {$x$},
ylabel = {$y$},
extra x tick label = {$\hspace{0.4cm}O$},
disabledatascaling,
]
\draw[thick,red,fill=YellowOrange] (axis cs:0,0) ellipse [x radius={1/sqrt(2)}, y radius=1,rotate=180];
\addplot[mark=*] coordinates {({1/sqrt(2)},0)} node[below right] {$(\frac{1}{\sqrt{2}},0)$};
\addplot[mark=*] coordinates {(-{1/sqrt(2)},0)} node[below left] {$(-\frac{1}{\sqrt{2}},0)$};
\addplot[mark=*] coordinates {(0,1)} node[above right] {$(0,1)$};
\addplot[mark=*] coordinates {(0,-1)} node[below right] {$(-1,0)$};
\draw (axis cs:0.3,0.25) node[rotate=0] {$A^\circ$};
\draw (axis cs:1,0.4) node[rotate=0] {$\partial A$};
\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à.






Document









Document