diff --git a/tikz/exponential-functions-gif/exponential-functions-gif-2.gif b/tikz/exponential-functions-gif/exponential-functions-gif-2.gif new file mode 100644 index 0000000..1be948d Binary files /dev/null and b/tikz/exponential-functions-gif/exponential-functions-gif-2.gif differ diff --git a/tikz/exponential-functions-gif/exponential-functions-gif.gif b/tikz/exponential-functions-gif/exponential-functions-gif.gif new file mode 100644 index 0000000..28b0a96 Binary files /dev/null and b/tikz/exponential-functions-gif/exponential-functions-gif.gif differ diff --git a/tikz/exponential-functions/Makefile b/tikz/exponential-functions/Makefile new file mode 100644 index 0000000..1c8d1be --- /dev/null +++ b/tikz/exponential-functions/Makefile @@ -0,0 +1,31 @@ +SOURCE = exponential-functions +DELAY = 80 +DENSITY = 300 +WIDTH = 1000 + +make: + pdflatex $(SOURCE).tex -output-format=pdf + make clean + +clean: + rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot + +gif: + pdfcrop $(SOURCE).pdf + convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif + make clean + +png: + make + make svg + inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png + +transparentGif: + convert $(SOURCE).pdf -transparent white result.gif + make clean + +svg: + #inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg + pdf2svg $(SOURCE).pdf $(SOURCE).svg + # Necessary, as pdf2svg does not always create valid svgs: + inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg diff --git a/tikz/exponential-functions/README.md b/tikz/exponential-functions/README.md new file mode 100644 index 0000000..1ef716c --- /dev/null +++ b/tikz/exponential-functions/README.md @@ -0,0 +1,3 @@ +Compiled example +---------------- +![Example](exponential-functions.png) diff --git a/tikz/exponential-functions/exponential-functions.png b/tikz/exponential-functions/exponential-functions.png new file mode 100644 index 0000000..430ebdd Binary files /dev/null and b/tikz/exponential-functions/exponential-functions.png differ diff --git a/tikz/exponential-functions/exponential-functions.tex b/tikz/exponential-functions/exponential-functions.tex new file mode 100644 index 0000000..094e1e4 --- /dev/null +++ b/tikz/exponential-functions/exponential-functions.tex @@ -0,0 +1,40 @@ +\documentclass[varwidth=false, border=2pt]{standalone} + +\usepackage{pgfplots} +\pgfplotsset{compat=1.17} +\usepackage{tikz} +\usepackage{nicefrac} +\pgfplotsset{every axis legend/.append style={ +at={(0,0)}, +anchor=north east}} + +\begin{document} +\begin{tikzpicture} + \begin{axis}[ + axis x line=middle, + axis y line=middle, + grid = major, + width=16cm, + height=8cm, + grid style={dashed, gray!30}, + xmin=-2.1, % start the diagram at this x-coordinate + xmax= 4.1, % end the diagram at this x-coordinate + ymin= 0, % start the diagram at this y-coordinate + ymax= 17, % end the diagram at this y-coordinate + xlabel=$x$, + ylabel=$y$, + ytick={0,2,3,4,8,9,12,16}, + yticklabels={0,2,3,4,8,9,12,16}, + legend cell align=left, + legend pos=south east, + legend style={draw=none}, + tick align=outside, + enlargelimits=false] + % plot the function + \addplot[domain=-2:4, red, ultra thick,samples=500] {2^x}; + \addplot[domain=-2:4, green!50!black, ultra thick,dashed,samples=500] {3^x}; + \addplot[domain=-2:4, blue, ultra thick,dotted,samples=500] {4^x}; + \legend{$2^x$,$3^x$,$4^{x}$} + \end{axis} +\end{tikzpicture} +\end{document} diff --git a/tikz/inverse-function/Makefile b/tikz/inverse-function/Makefile new file mode 100644 index 0000000..934ada1 --- /dev/null +++ b/tikz/inverse-function/Makefile @@ -0,0 +1,33 @@ +SOURCE = inverse-function +DELAY = 80 +DENSITY = 300 +WIDTH = 512 + +make: + pdflatex $(SOURCE).tex -output-format=pdf + make clean + +clean: + rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot + +gif: + pdfcrop $(SOURCE).pdf + convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif + make clean + +png: + make + make svg + inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png + +transparentGif: + convert $(SOURCE).pdf -transparent white result.gif + make clean + +svg: + #inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg + pdf2svg $(SOURCE).pdf $(SOURCE).svg + # Necessary, as pdf2svg does not always create valid svgs: + inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg + rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg + rm $(SOURCE)1.svg diff --git a/tikz/inverse-function/README.md b/tikz/inverse-function/README.md new file mode 100644 index 0000000..709b55c --- /dev/null +++ b/tikz/inverse-function/README.md @@ -0,0 +1,3 @@ +Compiled example +---------------- +![Example](inverse-function.png) diff --git a/tikz/inverse-function/inverse-function.tex b/tikz/inverse-function/inverse-function.tex new file mode 100644 index 0000000..4277245 --- /dev/null +++ b/tikz/inverse-function/inverse-function.tex @@ -0,0 +1,16 @@ +\documentclass[varwidth=true, border=2pt]{standalone} + +\usepackage{tikz} +\usetikzlibrary{shapes,snakes,shapes.geometric,positioning,decorations.text} + +\begin{document} +\tikzstyle{arrow}=[bend left,->,very thick, line cap=round] +\begin{tikzpicture}[node distance=2cm] + \node[ellipse,draw,minimum width=80pt,minimum height=20pt,fill=gray!5] (a) {1\\2\\3}; + \node[ellipse,draw,minimum width=80pt,minimum height=20pt,fill=gray!5,below of=a] (u) {a\\b\\c}; + + % Arrows + \draw[arrow,postaction={decorate,decoration={text along path,raise=0.08cm,text align=center,text={Aktion {$a_k$}}}}] (a.east) to node {} (u.east); + \draw[arrow,postaction={decorate,decoration={text along path,raise=0.08cm,text align=center,text={Zustand {$x_k$}}}}] (u.west) to node {} (a.west); +\end{tikzpicture} +\end{document} diff --git a/tikz/logarithmic-functions/Makefile b/tikz/logarithmic-functions/Makefile new file mode 100644 index 0000000..4c87f83 --- /dev/null +++ b/tikz/logarithmic-functions/Makefile @@ -0,0 +1,31 @@ +SOURCE = logarithmic-functions +DELAY = 80 +DENSITY = 300 +WIDTH = 500 + +make: + pdflatex $(SOURCE).tex -output-format=pdf + make clean + +clean: + rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot + +gif: + pdfcrop $(SOURCE).pdf + convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif + make clean + +png: + make + make svg + inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png + +transparentGif: + convert $(SOURCE).pdf -transparent white result.gif + make clean + +svg: + #inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg + pdf2svg $(SOURCE).pdf $(SOURCE).svg + # Necessary, as pdf2svg does not always create valid svgs: + inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg diff --git a/tikz/logarithmic-functions/README.md b/tikz/logarithmic-functions/README.md new file mode 100644 index 0000000..429b5af --- /dev/null +++ b/tikz/logarithmic-functions/README.md @@ -0,0 +1,3 @@ +Compiled example +---------------- +![Example](logarithmic-functions.png) diff --git a/tikz/logarithmic-functions/logarithmic-functions.png b/tikz/logarithmic-functions/logarithmic-functions.png new file mode 100644 index 0000000..ef043b4 Binary files /dev/null and b/tikz/logarithmic-functions/logarithmic-functions.png differ diff --git a/tikz/logarithmic-functions/logarithmic-functions.tex b/tikz/logarithmic-functions/logarithmic-functions.tex new file mode 100644 index 0000000..5608fe1 --- /dev/null +++ b/tikz/logarithmic-functions/logarithmic-functions.tex @@ -0,0 +1,37 @@ +\documentclass[varwidth=false, border=2pt]{standalone} + +\usepackage{pgfplots} +\usepackage{tikz} +\usepackage{nicefrac} +\pgfplotsset{every axis legend/.append style={ +at={(0,0)}, +anchor=north east}} + +\begin{document} +\begin{tikzpicture} + \begin{axis}[ + axis x line=middle, + axis y line=middle, + grid = major, + width=8cm, + height=8cm, + grid style={dashed, gray!30}, + xmin= 0, % start the diagram at this x-coordinate + xmax=10, % end the diagram at this x-coordinate + ymin=-5, % start the diagram at this y-coordinate + ymax= 5, % end the diagram at this y-coordinate + xlabel=$x$, + ylabel=$y$, + legend cell align=left, + legend pos=south east, + legend style={draw=none}, + tick align=outside, + enlargelimits=false] + % plot the function + \addplot[domain=0:10, red, ultra thick,samples=500] {log2(x)}; + \addplot[domain=0:10, green!50!black,dashed,ultra thick,samples=500] {log2(0.5*x)}; + \addplot[domain=0:10, blue,dotted, ultra thick,samples=500] {log10(x)}; + \legend{$\log_2(x)$,$\log_2(\nicefrac{x}{2})$,$\log_{10}(x)$} + \end{axis} +\end{tikzpicture} +\end{document} diff --git a/tikz/logistic-functions/Makefile b/tikz/logistic-functions/Makefile new file mode 100644 index 0000000..d411707 --- /dev/null +++ b/tikz/logistic-functions/Makefile @@ -0,0 +1,31 @@ +SOURCE = logistic-functions +DELAY = 80 +DENSITY = 300 +WIDTH = 1000 + +make: + pdflatex $(SOURCE).tex -output-format=pdf + make clean + +clean: + rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot + +gif: + pdfcrop $(SOURCE).pdf + convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif + make clean + +png: + make + make svg + inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png + +transparentGif: + convert $(SOURCE).pdf -transparent white result.gif + make clean + +svg: + #inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg + pdf2svg $(SOURCE).pdf $(SOURCE).svg + # Necessary, as pdf2svg does not always create valid svgs: + inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg diff --git a/tikz/logistic-functions/README.md b/tikz/logistic-functions/README.md new file mode 100644 index 0000000..5e5dda9 --- /dev/null +++ b/tikz/logistic-functions/README.md @@ -0,0 +1,3 @@ +Compiled example +---------------- +![Example](logistic-functions.png) diff --git a/tikz/logistic-functions/logistic-functions.tex b/tikz/logistic-functions/logistic-functions.tex new file mode 100644 index 0000000..e32282c --- /dev/null +++ b/tikz/logistic-functions/logistic-functions.tex @@ -0,0 +1,37 @@ +\documentclass[varwidth=false, border=2pt]{standalone} + +\usepackage{pgfplots} +\usepackage{tikz} +\usepackage{nicefrac} +\pgfplotsset{every axis legend/.append style={ +at={(0,0)}, +anchor=north east}} + +\begin{document} +\begin{tikzpicture} + \begin{axis}[ + axis x line=middle, + axis y line=middle, + grid = major, + width=16cm, + height=8cm, + grid style={dashed, gray!30}, + xmin=-5, % start the diagram at this x-coordinate + xmax= 5, % end the diagram at this x-coordinate + ymin= 0, % start the diagram at this y-coordinate + ymax= 1.1, % end the diagram at this y-coordinate + xlabel=$x$, + ylabel=$y$, + legend cell align=left, + legend pos=south east, + legend style={draw=none}, + tick align=outside, + enlargelimits=false] + % plot the function + \addplot[domain=-5:5, red, ultra thick,samples=500] {1/(1+exp(-1*(x - 0)))}; + \addplot[domain=-5:5, blue, ultra thick,dotted,samples=500] {1/(1+exp(-2*(x - 0)))}; + \addplot[domain=-5:5, green!50!black, ultra thick,dashed,samples=500] {1/(1+exp(-1*(x - 1)))}; + \legend{$\frac{1}{1 + e^{-x}}$,$\frac{1}{1 + e^{-2 \cdot x}}$,$\frac{1}{1 + e^{-(x-1)}}$} + \end{axis} +\end{tikzpicture} +\end{document} diff --git a/tikz/quadratic-functions/Makefile b/tikz/quadratic-functions/Makefile new file mode 100644 index 0000000..e8b606d --- /dev/null +++ b/tikz/quadratic-functions/Makefile @@ -0,0 +1,31 @@ +SOURCE = quadratic-functions +DELAY = 80 +DENSITY = 300 +WIDTH = 1000 + +make: + pdflatex $(SOURCE).tex -output-format=pdf + make clean + +clean: + rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot + +gif: + pdfcrop $(SOURCE).pdf + convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif + make clean + +png: + make + make svg + inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png + +transparentGif: + convert $(SOURCE).pdf -transparent white result.gif + make clean + +svg: + #inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg + pdf2svg $(SOURCE).pdf $(SOURCE).svg + # Necessary, as pdf2svg does not always create valid svgs: + inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg diff --git a/tikz/quadratic-functions/README.md b/tikz/quadratic-functions/README.md new file mode 100644 index 0000000..399261e --- /dev/null +++ b/tikz/quadratic-functions/README.md @@ -0,0 +1,3 @@ +Compiled example +---------------- +![Example](linear-functions.png) diff --git a/tikz/quadratic-functions/quadratic-functions.png b/tikz/quadratic-functions/quadratic-functions.png new file mode 100644 index 0000000..601816a Binary files /dev/null and b/tikz/quadratic-functions/quadratic-functions.png differ diff --git a/tikz/quadratic-functions/quadratic-functions.tex b/tikz/quadratic-functions/quadratic-functions.tex new file mode 100644 index 0000000..a9ed75c --- /dev/null +++ b/tikz/quadratic-functions/quadratic-functions.tex @@ -0,0 +1,37 @@ +\documentclass[varwidth=false, border=2pt]{standalone} + +\usepackage{pgfplots} +\usepackage{tikz} +\usepackage{nicefrac} +\pgfplotsset{every axis legend/.append style={ +at={(0,0)}, +anchor=north east}} + +\begin{document} +\begin{tikzpicture} + \begin{axis}[ + axis x line=middle, + axis y line=middle, + grid = major, + width=8cm, + height=8cm, + grid style={dashed, gray!30}, + xmin=-5, % start the diagram at this x-coordinate + xmax= 5, % end the diagram at this x-coordinate + ymin=-1.1, % start the diagram at this y-coordinate + ymax= 9, % end the diagram at this y-coordinate + xlabel=$x$, + ylabel=$y$, + legend cell align=left, + legend pos=north west, + legend style={draw=none}, + tick align=outside, + enlargelimits=false] + % plot the function + \addplot[domain=-5:5, red, ultra thick,samples=500] {x^2}; + \addplot[domain=-5:5, green!50!black, ultra thick,dashed,samples=500] {x^2+2*x}; + \addplot[domain=-5:5, blue, ultra thick,dotted,samples=500] {x^2-x}; + \legend{$x^2$,$x^2 + 2x$,$x^2-x$} + \end{axis} +\end{tikzpicture} +\end{document} diff --git a/tikz/trigonometric-function-graphs/Makefile b/tikz/trigonometric-function-graphs/Makefile new file mode 100644 index 0000000..6a28204 --- /dev/null +++ b/tikz/trigonometric-function-graphs/Makefile @@ -0,0 +1,31 @@ +SOURCE = trigonometric-function-graphs +DELAY = 80 +DENSITY = 300 +WIDTH = 1000 + +make: + pdflatex $(SOURCE).tex -output-format=pdf + make clean + +clean: + rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot + +gif: + pdfcrop $(SOURCE).pdf + convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif + make clean + +png: + make + make svg + inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png + +transparentGif: + convert $(SOURCE).pdf -transparent white result.gif + make clean + +svg: + #inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg + pdf2svg $(SOURCE).pdf $(SOURCE).svg + # Necessary, as pdf2svg does not always create valid svgs: + inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg diff --git a/tikz/trigonometric-function-graphs/README.md b/tikz/trigonometric-function-graphs/README.md new file mode 100644 index 0000000..bcfb0d2 --- /dev/null +++ b/tikz/trigonometric-function-graphs/README.md @@ -0,0 +1,3 @@ +Compiled example +---------------- +![Example](trigonometric-function-graphs.png) diff --git a/tikz/trigonometric-function-graphs/trigonometric-function-graphs.png b/tikz/trigonometric-function-graphs/trigonometric-function-graphs.png new file mode 100644 index 0000000..16fdece Binary files /dev/null and b/tikz/trigonometric-function-graphs/trigonometric-function-graphs.png differ diff --git a/tikz/trigonometric-function-graphs/trigonometric-function-graphs.tex b/tikz/trigonometric-function-graphs/trigonometric-function-graphs.tex new file mode 100644 index 0000000..12e428f --- /dev/null +++ b/tikz/trigonometric-function-graphs/trigonometric-function-graphs.tex @@ -0,0 +1,38 @@ +\documentclass[varwidth=false, border=2pt]{standalone} + +\usepackage{pgfplots} +\usepackage{tikz} +\usepackage{nicefrac} +\pgfplotsset{every axis legend/.append style={ +at={(0,0)}, +anchor=north east}} + +\begin{document} +\begin{tikzpicture} + \begin{axis}[ + axis x line=middle, + axis y line=middle, + grid = major, + width=16cm, + height=8cm, + grid style={dashed, gray!30}, + xmin= 0, % start the diagram at this x-coordinate + xmax= 7, % end the diagram at this x-coordinate + ymin=-1.1, % start the diagram at this y-coordinate + ymax= 1.1, % end the diagram at this y-coordinate + xlabel=$x$, + ylabel=$y$, + xtick={0,pi/2,pi,1.5*pi,2*pi}, + xticklabels={0,$\frac{\pi}{2}$,$\pi$,$\frac{3 \cdot \pi}{2}$,$2 \pi$}, + legend cell align=left, + legend pos=south east, + legend style={draw=none}, + tick align=outside, + enlargelimits=false] + % plot the function + \addplot[domain=0:7, red, ultra thick,samples=1000] {sin(deg(x))}; + \addplot[domain=0:7, blue, ultra thick,dotted,samples=1000] {cos(deg(x))}; + \legend{$\sin(x)$, $\cos(x)$} + \end{axis} +\end{tikzpicture} +\end{document}