Grafici con Tikz numero 15 (funzioni)

Immagini matematica

Home » Grafici con Tikz numero 15 (funzioni)
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
post
page

Prima di ogni figura ricordare di mettere

 

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

Primo blocco di figure

Rendered by QuickLaTeX.com

Rendered by QuickLaTeX.com

Rendered by QuickLaTeX.com

 

Rendered by QuickLaTeX.com

Rendered by QuickLaTeX.com

 

Codice primo blocco di figure

\begin{tikzpicture}
\begin{axis}[
axis x line=center,
axis y line=center,
scale=1,
xmin = -5,
xmax = 5,
ymin = -8,
ymax = 8,
xlabel = {$x$},
ylabel = {$y$},
xtick = \empty,
ytick = \empty,
extra x ticks = {0},
extra x tick label = {$\hspace{-0.6cm}O$},
colormap={yellowgreen}{rgb255(0cm)=(255,165,0); rgb255(1cm)=(138,43,226)}
]

\addplot[very thick, domain=-5:-1.01, samples=100, mesh,point meta=x] {-x^2/(-x-1)};
\addplot[very thick, domain=-0.99:5, samples=100, mesh,point meta=x] {-x^2/(-x-1)};

\addplot[no marks] coordinates {(-3.5,4)} node {\fbox{a}};

\end{axis}
\end{tikzpicture}

 

\begin{tikzpicture}
\begin{axis}[
axis x line=center,
axis y line=center,
scale=1,
xmin = -5,
xmax = 5,
ymin = -8,
ymax = 8,
xlabel = {$x$},
ylabel = {$y$},
xtick = \empty,
ytick = \empty,
extra x ticks = {0},
extra x tick label = {$\hspace{-0.6cm}O$},
colormap={yellowgreen}{rgb255(0cm)=(255,165,0); rgb255(1cm)=(138,43,226)}
]

\addplot[very thick, domain=-5:0.99, samples=100, mesh,point meta=x] {x^2/(x-1)};
\addplot[very thick, domain=1.01:5, samples=100, mesh,point meta=x] {x^2/(x-1)};

\addplot[no marks] coordinates {(-2.5,4)} node {\fbox{b}};

\end{axis}
\end{tikzpicture}

 

\begin{tikzpicture}
\begin{axis}[
axis x line=center,
axis y line=center,
scale=1,
xmin = -5,
xmax = 5,
ymin = -8,
ymax = 8,
xlabel = {$x$},
ylabel = {$y$},
xtick = \empty,
ytick = \empty,
extra x ticks = {0},
extra x tick label = {$\hspace{0.6cm}O$},
colormap={yellowgreen}{rgb255(0cm)=(255,165,0); rgb255(1cm)=(138,43,226)}
]

\addplot[very thick, domain=-5:-1.01, samples=100, mesh,point meta=x] {-x^2/(x+1)};
\addplot[very thick, domain=-0.99:5, samples=100, mesh,point meta=x] {-x^2/(x+1)};

\addplot[no marks] coordinates {(2.5,4)} node {\fbox{c}};

\end{axis}
\end{tikzpicture}

 

 

 

\begin{tikzpicture}
\begin{axis}[
axis x line=center,
axis y line=center,
scale=1,
xmin = -5,
xmax = 5,
ymin = -8,
ymax = 8,
xlabel = {$x$},
ylabel = {$\hspace{-0.5cm}y$},
xtick = \empty,
ytick = \empty,
extra x ticks = {0},
extra x tick label = {$\hspace{-0.6cm}O$},
colormap={yellowgreen}{rgb255(0cm)=(255,165,0); rgb255(1cm)=(138,43,226)}
]

\addplot[very thick, domain=-5:0.99, samples=100, mesh,point meta=x] {x^2/abs(x-1)};
\addplot[very thick, domain=1.01:5, samples=100, mesh,point meta=x] {x^2/abs(x-1)};

\addplot[no marks] coordinates {(2.5,-4)} node {\fbox{d}};

\end{axis}
\end{tikzpicture}

 

 

\begin{tikzpicture}
\begin{axis}[
axis x line=center,
axis y line=center,
scale=1,
xmin = -5,
xmax = 5,
ymin = -8,
ymax = 8,
xlabel = {$x$},
ylabel = {$y$},
xtick = \empty,
ytick = \empty,
extra x ticks = {0},
extra x tick label = {$\hspace{-0.6cm}O$},
colormap={yellowgreen}{rgb255(0cm)=(255,165,0); rgb255(1cm)=(138,43,226)}
]

\addplot[very thick, domain=-5:-1.01, samples=100, mesh,point meta=x] {x^2/abs(x+1)};
\addplot[very thick, domain=-0.99:5, samples=100, mesh,point meta=x] {x^2/abs(x+1)};

\addplot[no marks] coordinates {(-2.5,-4)} node {\fbox{e}};

\end{axis}
\end{tikzpicture}