AIGrounding/Diagram-MMU huggingface dataset:
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{amsmath,amssymb}
\usepackage{siunitx}
\usepackage[siunitx, RPvoltages]{circuitikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\ctikzset{
monopoles/vcc/arrow={Triangle[width=0.8*\scaledwidth, length=\scaledwidth]},
monopoles/vee/arrow={Triangle[width=6pt, length=8pt]},
}
\begin{circuitikz}[baseline=(vo.center)]
\node [ocirc](TW) at (0,0) {};
\draw (TW.east) -- ++(1,0) node[midway, above]{$v_i$} node[op amp, anchor=-](A1){};
\draw (A1.up) -- ++(0, 0.3) node[vcc]{\SI{+10}{V}};
\draw (A1.down) -- ++(0,-0.3) node[vee]{\SI{-10}{V}};
\draw (A1.+) -- ++(-0.5,0) to[battery2, invert, l_=\SI{2}{V}] ++(0,-1) node[ground]{};
\draw (A1.out) to[short, -o] ++(0.5,0) node[above](vo){$v_o$};
\end{circuitikz}
\qquad
\begin{circuitikz}[baseline=(vo.center), scale=0.6, transform shape]
\node [ocirc](TW) at (0,0) {};
\draw (TW.east) -- ++(1,0) node[midway, above]{$v_i$} node[op amp, anchor=-](A1){};
\draw (A1.up) -- ++(0, 0.3) node[vcc]{\SI{+10}{V}};
\draw (A1.down) -- ++(0,-0.3) node[vee]{\SI{-10}{V}};
\draw (A1.+) -- ++(-0.5,0) to[battery2, invert, l_=\SI{2}{V}] ++(0,-1) node[ground]{};
\draw (A1.out) to[short, -o] ++(0.5,0) node[above](vo){$v_o$};
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tkz-euclide}
\begin{document}
\begin{tikzpicture}[scale=.75]
\tkzSetUpLine[add=.5 and .5, line width=.2pt]\tkzDefPoints{0/0/A,4/0/B,1/3/C}\tkzDrawLines(A,B B,C A,C)\tkzDrawPolygon[red,thick](A,B,C)\tkzSetUpPoint[size=4,circle,color=red,fill=red!20]\tkzDrawPoints(A,B,C)
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{patchplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
nodes near coords={(\coordindex)},
title=Rectangle from matrix input,
]
\addplot3 [
surf,
shader=interp,
samples=2,
patch type=rectangle,
] {x*y};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,positioning}
\tikzset{Circle/.style={circle, inner sep=2.5pt, fill=black, label={above:{$#1$}
}},Arrows/.style={arrows={-Triangle[length=2mm]}}}
\begin{document}
\tikzset{Circle/.style={circle, inner sep=2.5pt, fill=black, label={above:{$#1$}
}},Arrows/.style={arrows={-Triangle[length=2mm]}}}
\begin{tikzpicture}[thick,node distance=1cm]
\draw (0,0) node[Circle=x] (x) {};
\draw (2,0) node[Circle=y] (y) {};
\draw [->,Arrows] (x) -- (y);
\draw [->,Arrows] (y) .. controls +(-1,-1)..(x);
\node [right=of y, font=\Huge](z) {\lower1.3ex\hbox{=}};
\node [right=of z, Circle=x](t) {};
\draw [->,Arrows] (t) --+ (2,0)node(e)[label={above:{$y$}}]{};
\node [right=of e, font=\Huge](f) {\lower1.3ex\hbox{$\ast$}};
\node [right=of f,label={above:{$x$}}](g){};
\node [right=2 of g, Circle=y](h){};
\draw [->,Arrows] (h) .. controls +(-1,-1)..(g);
\begin{scope}[color=blue]
\draw (1,0) circle (1.5);
\draw (t)+(1,-1.5) arc (270:90:1.5cm)--cycle;
\draw (h)+(-1,-1.5) arc (-90:90:1.5cm)--cycle;
\end{scope}
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis} [axis lines=center,
scale=0.7,
xticklabels={ $\frac{\pi}{4}$,$\frac{\pi}{2}$,$\frac{3\pi}{4}$, $\pi$},xtick={ pi/4,pi/2,3*pi/4, pi},yticklabels={$\frac{\pi}{4}$,$\frac{\pi}{2}$,$\frac{3\pi}{4}$,$\frac{9\pi}{10}$, $\pi$},ytick={ pi/4,pi/2,3*pi/4,9*pi/10, pi},x label style={at={(axis description cs:0.5,-0.2)},anchor=north},
y label style={at={(axis description cs:-0.1,.5)},rotate=90,anchor=south},ymax=pi,ylabel={Fold Angle $\phi$},
xlabel={Dihedral Angle $\xi$},]
\addplot [domain=0:pi, smooth, thick] { 2*rad(atan(cos(deg(x/2))*tan(deg(2.5*pi/20))))};
\addplot [domain=0:pi, smooth, thick] { 2*rad(atan(cos(deg(x/2))*tan(deg(5*pi/20))))};
\addplot [domain=0:pi, smooth, thick] { 2*rad(atan(cos(deg(x/2))*tan(deg((7.5*pi)/20))))};
\addplot [domain=0:pi, smooth, thick] { 2*rad(atan(cos(deg(x/2))*tan(deg((9*pi)/20))))};
\addplot [domain=0:pi, smooth, thick] { 2*rad(atan(cos(deg(x/2))*tan(deg((9.7*pi)/20))))};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath, amsthm, amsfonts}
\usepackage{amssymb}
\usepackage{xcolor}
\usepackage{pgfplots}
\usepackage{tikz-cd}
\newcommand{\p}{\varphi}
\begin{document}
\begin{tikzpicture}[declare function={func(\x)= and(\x > -0.5, \x < 0.5) * (0.75-sqrt(pi/8*abs(\x))) + (\x >= 0.5) * ((0.75-sqrt(pi/8*abs(0.5)))*exp(-pi/2*(\x-0.5))) + (\x < -0.5) * ((0.75-sqrt(pi/8*abs(0.5)))*exp(pi/2*(\x+0.5)));
}]
\begin{axis}[axis x line=middle, axis y line=none, ymin=0, ymax=0.75, ytick={0}, xmin=-7, xmax=7, xtick={0}, domain=-9:9, samples=500, y=5.0cm, x=0.5cm, ]\addplot [blue,thick] {func(x)};
\node[] at (axis cs: 3.9,0.62) {$\frac{c}{2}-\p(x) \sim |x|^{1/2}$};
\node[] at (axis cs: 4.5,0.087) {$\p(x) \lesssim e^{-\eta|x|}$};
\draw[dashed] (axis cs:0,0.676) circle [black, radius=0.33cm];
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{graphs}
\tikzset{>=stealth}
\begin{document}
\tikz \graph { a -> {b,c} };
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
legend cell align=right,
legend pos=outer north east,
]
\addplot coordinates {(0,0) (1,1)};
\addplot coordinates {(0,1) (1,2)};
\addplot coordinates {(0,2) (1,3)};
\legend{a,fine,legend}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=0.5cm]{standalone}
\usepackage{forest}
\begin{document}
\begin{forest}
for tree={
calign=fixed edge angles,
anchor=north
},
delay={where content={}{shape=coordinate}{}},
[$\Omega$
[G]
[
[
[F, tier=word]
[
[P, tier=word]
[
[D, tier=word]
[
[R, tier=word]
[M, tier=word
[m]
[n]
]
]
]
]
]
[
[S, tier=word]
[L, tier=word]
]
]
]
\end{forest}
\end{document}
\documentclass[12pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node (x) at (-1,1) {$X$};
\node (y) at (1,1) {$Y$};
\node (w) at (0,0) {$W$};
\draw[->, line width=1] (x) -- (y);
\draw[->, line width=1] (w) -- (x);
\draw[->, line width=1] (w) -- (y);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[ansinew]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\usepackage{tikz-dimline}
\usepackage{pgfplots}
\pgfplotsset{
compat=1.5,
legend image code/.code={
\draw[mark repeat=2,mark phase=2]
plot coordinates {
(0cm,0cm)
(0.15cm,0cm)
(0.3cm,0cm)
};
}
}
\usepgfplotslibrary{groupplots,dateplot}
\usetikzlibrary{patterns,shapes.arrows,calc,external,decorations,shapes,positioning}
\tikzset{>=latex}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
\definecolor{color0}{rgb}{0.12156862745098,0.466666666666667,0.705882352941177}
\definecolor{color1}{rgb}{1,0.498039215686275,0.0549019607843137}
\definecolor{color2}{rgb}{0.172549019607843,0.627450980392157,0.172549019607843}
\begin{axis}[
legend cell align={left},
legend style={draw opacity=1, text opacity=1, nodes={scale=1.0}, anchor=south west, at={(0.05,0.05)}},
log basis x={10},
log basis y={10},
tick align=outside,
tick pos=left,
width=7cm,
height=5.5cm,
xmode=log,
xtick style={color=black},
ylabel={relative error of $\Delta p$ in \%},
xlabel={$R$},
ymin=1e-3, ymax=2,
xmin=2, xmax=0.9e2,
ymode=log,
xtick = {1e1},
minor xtick={2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90},
ytick style={color=black}
]
\addplot [semithick, mark=*, mark size=1, black]
table {
3.2 0.521333333333329
6.4 0.0660000000000006
12.8 0.0190000000000055
25.6 0.00599999999999454
51.2 0.0019999999999981
};
\addlegendentry{FD}
\addplot [semithick, mark=*, mark size=1, red]
table {
3.2 0.230666666666669
6.4 0.0526666666666642
12.8 0.0193333333333309
25.6 0.0473333333333358
51.2 0.0333333333333333
};
\addlegendentry{NN}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{arrows,decorations.markings,matrix,shapes}
\newcommand{\diagram}[3]{\matrix (#1) [matrix of math nodes,row sep={#2}
,column sep={#3},text height=1.5ex,text depth=0.25ex]}
\begin{document}
\begin{tikzpicture}
\diagram{d}{3em}{3em}{0 & M_{t-2} & M_{t-3} & \cdots & M_0 & N & 0 \\ };
\path[->, font = \scriptsize, auto] (d-1-1) edge (d-1-2) (d-1-2) edge (d-1-3) (d-1-3) edge (d-1-4) (d-1-4) edge (d-1-5) (d-1-5) edge (d-1-6) (d-1-6) edge (d-1-7);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\tikzset{
level distance=1cm,
sibling distance=1cm,
}
\begin{document}
\begin{tikzpicture}
\node {root} [grow'=up]
child {node {left}}
child {node {right}
child {node {child}}
child {node {child}}
};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[siunitx, RPvoltages]{circuitikz}
\usepackage{siunitx}
\begin{document}
\begin{circuitikz}
\draw (0,2) to[sR, l=$R$, name=mySR] ++(3,0);
\node [font=\tiny, right] at(mySR.label) {-t\si{\degree}};
\draw (0,0) to[sL, l=$L$, name=mySL] ++(3,0);
\node [draw, circle, inner sep=2pt] at(mySL.label) {};
\draw (0,-2) to[sC, l=$C$, name=mySC] ++(3,0);
\node [font=\tiny, below right, inner sep=0pt] at(mySC.label) {+H\si{\%}};
\end{circuitikz}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}[scale=0.7, transform shape]
\draw (0,3) node[op amp]{OA1};
\draw (3,3) node[op amp, xscale=-1]{\ctikzflipx{OA2}};
\draw (0,0) node[op amp, yscale=-1]{\ctikzflipy{OA3}};
\draw (3,0) node[op amp, scale=-1]{\ctikzflipxy{OA4}};
\end{circuitikz}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}[american]
\draw (0,0) to[V=10V, invert, i_=$i_1$] (2,0);
\end{circuitikz}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{datavisualization, datavisualization.formats.functions}
\begin{document}
\tikz \datavisualization data group {function classes} = {
data [set=log, format=function] {
var x : interval [0.2:2.5];
func y = ln(\value x);
}
data [set=lin, format=function] {
var x : interval [-2:2.5];
func y = 0.5*\value x;
}
data [set=squared, format=function] {
var x : interval [-1.5:1.5];
func y = \value x*\value x;
}
data [set=exp, format=function] {
var x : interval [-2.5:1];
func y = exp(\value x);
}
};
\tikz \datavisualization [
school book axes,
x axis={label=$x$},
visualize as smooth line/.list={log, lin, squared, exp},
every data set label/.append style={text colored},
log= {pin in data={text'=$\log x$, when=y is -1}},
lin= {pin in data={text=$x/2$, when=x is 2,
pin length=1ex}},
squared={pin in data={text=$x^2$, when=x is 1.1,
pin angle=230}},
exp= {label in data={text=$e^x$, when=x is -2}},
style sheet=vary hue]
data group {function classes};
\end{document}
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\draw(0,0)--(60:4)circle(1)(-20:4)circle(1);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amssymb,amsbsy,latexsym,amsmath,bbm,epsfig,psfrag,amsthm,mathrsfs,stmaryrd}
\usepackage{graphicx,tikz,esint}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{pgfplots}
\usetikzlibrary{positioning}
\usetikzlibrary{arrows}
\usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{positioning}
\usetikzlibrary{arrows}
\usetikzlibrary{decorations.pathreplacing}
\newcommand{\Om}{\Omega}
\begin{document}
\begin{tikzpicture}[xscale=2,yscale=2]
\draw (-1,0)--(2,0);
\draw(2,0) node{$\bullet$};
\draw(-1,0) node{$\bullet$};
\draw (-1,0)--(-2,-2);
\draw(-2,-2) node{$\bullet$};
\draw(-2.3,-2) node{$z_{j-1}$};
\draw(2.3,0) node{$z_{j+1}$};
\draw(-1.2,0) node{$z_{j}$};
\draw(-2,-0.5) node{$ \Om$};
\draw (0,0)--(0.5,-0.5);
\draw (-1,0)--(-0.5,-0.5);
\draw (-0.5,-0.5)--(0.5,-0.5);
\draw (-0.5,-0.5)--(-1,-1.5);
\draw (-1,-1.5)--(-1.5,-1);
\draw(-1,-0.5) node{$\mathcal{P}_1$};
\draw(0,-0.3) node{$\mathcal{P}_2$};
\draw[thick,->] (0,0)--(0.5,-0.5);
\draw(0.6,-0.3) node{$\nu$};
\end{tikzpicture}
\end{document}
\documentclass[border=3mm,tikz]{standalone}
\usetikzlibrary{fit,positioning}
\begin{document}
\begin{tikzpicture}[auto, thick, node distance = 7mm and 22mm, MN/.style args = {#1/#2}{circle, draw=#1, fill=#2, inner sep=0.5mm, outer sep=0mm, font=\sffamily\Large\bfseries}, MN/.default = black/white]
\foreach \i[count=\ix from 0] in {0,1,2,4}
\node (n\i) [MN] at ({90*\ix}:4.2mm) {\i};
\node (a) [MN=red/none,fit=(n0) (n2)] {};
\node (n3) [MN=red/gray!50, above right=of a] {3};
\node (n5) [MN=blue/gray!50, below right=of a] {5};
\draw (a) -- node {4} (n3);
\draw[dashed] (n3) -- node {6} (n5) (n5) -- node {3} (a);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb,amsfonts,tikz}
\usetikzlibrary{positioning,arrows}
\newcommand{\Real}{{\mathbb R}
} \newcommand{\F}[1]{\mathfrak{#1}
} \newcommand{\C}[1]{\mathcal{#1}
}
\begin{document}
\begin{tikzpicture}
\node (E) at (0,0) {$\lambda_0(i)$};
\node[right=of E] (B) {};
\node[right=of B] (F) {$\lambda_0(j)$};
\node[below=of B] (A) {$X$};
\node[below=of A] (C) {$ \ \Real$.};
\draw[->,bend left] (E) to node [midway,below] {$\lambda_{ij}$} (F);
\draw[->,bend left] (F) to node [midway,above] {$\lambda_{ji}$} (E);
\draw[->,bend right=50] (E) to node [midway,left] {$\F f_i$} (C);
\draw[->,bend left=50] (F) to node [midway,right] {$\F f_j$} (C);
\draw[right hook->,bend right=20] (E) to node [midway,left] {$ \ \C E_i \ $} (A);
\draw[left hook->,bend left=20] (F) to node [midway,right] {$\ \C E_j \ $} (A);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{amsthm,amsmath,latexsym,amssymb,amsfonts,amscd,cite}
\usepackage{tikz}
\usepackage[T1]{fontenc}
\newcommand{\sfs}{\mathsf{s}}
\newcommand{\sft}{\mathsf{t}}
\begin{document}
\begin{tikzpicture}[scale=1.7]
\draw[-, thick, color=blue] (9,0) -- (9.75,1.5);
\draw[-, thick, color=red] (9.75,1.5) -- (10.5, 0);
\draw[-, thick, color=blue] (8,1) -- (8.25,1.5);
\draw[-, thick, color=blue] (8.5,0) -- (8.75, 0.5);
\draw[-, thick, color=red] (8.5,0) -- (8,1);
\draw[-, thick, color=red] (8.75,0.5) -- (8.25, 1.5);
\draw[] (6.5,0) -- (11.5,0);
\draw[-, color=blue] (9.75,-1.5) -- (11.5,2);
\draw[-, color=blue] (7.25,-1.5) -- (9,2);
\draw[-, color=blue] (8.25,-1.5) -- (10,2);
\draw[-, color=blue] (9.25,-1.5) -- (11,2);
\draw[-, color=blue] (6.75,-1.5) -- (8.5,2);
\draw[-, color=blue] (7.75,-1.5) -- (9.5,2);
\draw[-, color=blue] (8.75,-1.5) -- (10.5,2);
\draw[-, color=red] (9.5,2) -- (11.25,-1.5);
\draw[-, color=red] (7,2) -- (8.75,-1.5);
\draw[-, color=red] (8,2) -- (9.75,-1.5);
\draw[-, color=red] (9,2) -- (10.75,-1.5);
\draw[-, color=red] (6.5,2) -- (8.25,-1.5);
\draw[-, color=red] (7.5,2) -- (9.25,-1.5);
\draw[-, color=red] (8.5,2) -- (10.25,-1.5);
\fill [black] (8.5,0) circle (1pt);
\fill [black] (8,1) circle (1pt);
\fill [black] (8.75,0.5) circle (1pt);
\fill [black] (8.25, 1.5) circle (1pt);
\fill [black] (9.75,1.5) circle (1pt);
\fill [black] (9,0) circle (1pt);
\fill [black] (10.5,0) circle (1pt);
\fill [black] (8.25,-1.5) circle (1pt);
\coordinate [label=below:$\!{}_{{}_{\sfs(g_1)=\sft(g_2)}}$] (A) at (8.5, 0);
\coordinate [label=above:${}_{{}_{\Sigma_{\sft}(x)=\Sigma_{\sfs}(y)}}$] (A) at (9.75, 1.5);
\coordinate [label=right:${}_{{}_{g_2}}$] (A) at (8.75, 0.6);
\coordinate [label=left:${}_{{}_{g_1}}$] (A) at (8, 0.93);
\coordinate [label=above:${}_{{}_{g}}$] (A) at (8.25, 1.5);
\coordinate [label=below:${}_{{}_{\qquad\; x=l_{\Sigma}(y)}}$] (A) at (9, 0);
\coordinate [label=below:${}_{{}_{\qquad\; y= r_{\Sigma}(x)}}$] (A) at (10.5, 0);
\coordinate [label=above:${}_{{}_{\mathsf{i}(g)}}$] (A) at (8.25, -1.5);
\coordinate [label=:${}_{X}$] (A) at (6.75, 0);
\coordinate [label=below:${}_{\Sigma_1}$] (A) at (6.7, 1.1);
\coordinate [label=below:${}_{\Sigma_2}$] (A) at (11.2, 0.6);
\coordinate [label=below:${}_{\Sigma}$] (A) at (6.6, 1.7);
\coordinate [label=:${}_{\textcolor{blue}{\text{\tiny t-fibers}}}$] (A) at (6.8, -0.8);
\coordinate [label=:${}_{\textcolor{red}{\text{\tiny s-fibers}}}$] (A) at (11.2, -0.8);
\draw [] (6.5, 1.7) ..controls (7.5, 2) and (8.2, 0.82).. (11.5,1.9);
\draw [] (6.5, 1) ..controls (7.5, 1.9) and (8.2,-0.2).. (11.5,1.63);
\draw [] (6.5, 0.5) ..controls (8, 1.2) and (9,-0.15).. (11.3,0.7);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[siunitx, RPvoltages]{circuitikz}
\usepackage{siunitx}
\begin{document}
\begin{circuitikz}
\draw (0,0) to[I=$a_1$] (2,0);
\end{circuitikz}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{upgreek}
\usepackage{fp}
\usepackage{tikz}
\usetikzlibrary{
arrows,
arrows.meta,
arrows.spaced,
bending,
babel,
calc,
fit,
positioning,
scopes,
intersections,
through,
backgrounds,
matrix,
chains,
quotes,
angles,
math,
topaths,
plotmarks,
decorations,
decorations.pathmorphing,
decorations.markings,
decorations.pathreplacing,
decorations.shapes,
decorations.text,
decorations.footprints,
decorations.fractals,
shapes,
shapes.geometric,
shapes.symbols,
shapes.arrows,
shapes.multipart,
shapes.callouts,
shapes.misc,
shapes.gates.logic.US,
shapes.gates.logic.IEC,
patterns,
patterns.meta,
fadings,
shadings,
shadows,
shadows.blur,
mindmap,
calendar,
folding,
trees,
automata,
petri,
er,
turtle,
lindenmayersystems,
spy,
svg.path,
bbox,
external,
fixedpointarithmetic,
fpu,
circuits.logic.US,
circuits.logic.IEC,
circuits.logic.CDH,
circuits.ee.IEC,
datavisualization,
datavisualization.polar,
datavisualization.formats.functions,
3d,
perspective,
views,
graphs,
graphs.standard,
rdf
}
\usepackage{amsmath,amssymb}
\usepackage{xcolor}
\makeatletter
\tikzset{
help lines/.style={gray,very thin},
important line/.style={thick},
information text/.style={rounded corners,fill=red!10,inner sep=1ex},
Karl's grid/.style={help lines,color=blue!50},
Karl's axes/.style={<->},
place/.style={circle,draw=blue!50,fill=blue!20,thick,minimum size=6mm},
transition/.style={rectangle,draw=black!50,fill=black!20,thick,minimum size=4mm},
pre/.style={<-,shorten <=1pt,>=stealth',semithick},
post/.style={->,shorten >=1pt,>=stealth',semithick},
state/.style={draw,circle,minimum size=0.6cm},
initial text={},
level distance=1cm,
sibling distance=1cm,
dot/.style={circle,fill,inner sep=0pt,minimum size=4pt},
small dot/.style={circle,fill,inner sep=0pt,minimum size=2pt}
}
\colorlet{concept color}{blue!40}
\pgfkeys{/pgf/decoration/.unknown/.code={}}
\makeatother
\begin{document}
\begin{tikzpicture}
\path[mindmap,concept color=black,text=white]
node[concept] {Computer Science}
[clockwise from=0]
child[concept color=green!50!black] {
node[concept] {practical}
[clockwise from=90]
child { node[concept] {algorithms} }
child { node[concept] {data structures} }
child { node[concept] {pro\-gramming languages} }
child { node[concept] {software engineer\-ing} }
}
child[concept color=blue] {
node[concept] {applied}
[clockwise from=-30]
child { node[concept] {databases} }
child { node[concept] {WWW} }
}
child[concept color=red] { node[concept] {technical} }
child[concept color=orange] { node[concept] {theoretical} };
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,0) to[R, f>_=$i_1$] (3,0);
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,xcolor,tikz}
\usetikzlibrary{arrows.meta,calc,positioning}
\tikzset{>={Latex[width=2mm,length=2mm]}
,base/.style={rectangle,rounded corners,draw=black,minimum width=4cm,minimum height=1cm,text centered,font=\sffamily},state/.style={draw,circle,minimum size=0.8cm,inner sep=0pt},arrow/.style={-Stealth,shorten >=1pt},dot/.style={minimum size=4pt,inner sep=0pt,rounded corners=1pt,fill}}\newcommand{\ten}[1]{\ensuremath{\mathbf{#1}
}}
\begin{document}
\begin{tikzpicture}
\node(x1){$\ten{x}$};
\node[below=of x1,yshift=-2.5cm](xc1){$\ten{x}^b_1$};
\node[below=of xc1,yshift=-0.25cm](xc2){$\ten{x}^b_n$};
\node[dot]at($(xc1)!0.33!(xc2)$){};
\node[dot]at($(xc1)!0.5!(xc2)$){};
\node[dot]at($(xc1)!0.66!(xc2)$){};
\node[state,right=of x1](minus1){$-$};
\node[state,below=of minus1,yshift=-0.8](minus2){$-$};
\node[right=of minus1,xshift=-0.45cm,yshift=0.3cm](r1){$r_1$};
\node[below=of r1,yshift=-0.3cm](r2){$r_n$};
\node[dot]at($(minus1)!0.33!(minus2)$){};
\node[dot]at($(minus1)!0.5!(minus2)$){};
\node[dot]at($(minus1)!0.66!(minus2)$){};
\node[base,right=of minus1,xshift=1cm,fill=orange](g1){$-b_1\text{KNN}_G(r_1;
\Theta)$};
\node[base,right=of minus2,xshift=1cm,fill=orange](g2){$-b_n\text{KNN}_G(r_n;
\Theta)$};
\node[dot]at($(g1)!0.33!(g2)$){};
\node[dot]at($(g1)!0.5!(g2)$){};
\node[dot]at($(g1)!0.66!(g2)$){};
\node[base,right=of xc1,xshift=2.7cm](h1){$\text{MLP}_g(\ten{x}_1^b;
\theta_g)$};
\node[base,below=of h1](h2){$\text{MLP}_g(\ten{x}_n^b;
\theta_g)$};
\node[dot]at($(h1)!0.33!(h2)$){};
\node[dot]at($(h1)!0.5!(h2)$){};
\node[dot]at($(h1)!0.66!(h2)$){};
\node[state,right=of g1,yshift=-2.cm](prod1){$\times$};
\node[state,below=of prod1](prod2){$\times$};
\node[dot]at($(prod1)!0.33!(prod2)$){};
\node[dot]at($(prod1)!0.5!(prod2)$){};
\node[dot]at($(prod1)!0.66!(prod2)$){};
\node[state,right=of prod1,yshift=-1cm](int1){$\sum$};
\node[right=of int1](out){$u(\ten{x})$};
\draw[arrow](x1)--(minus1);
\draw[arrow](xc1)--(minus1);
\draw[arrow](x1)--(minus2);
\draw[arrow](xc2)--(minus2);
\draw[arrow](minus1)--(g1);
\draw[arrow](minus2)--(g2);
\draw[arrow](xc1)--(h1.west);
\draw[arrow](xc2)--(h2);
\draw[arrow](g1.east)--(prod1);
\draw[arrow](h1.east)--(prod1);
\draw[arrow](g2.east)--(prod2);
\draw[arrow](h2.east)--(prod2);
\draw[arrow](prod1)--(int1);
\draw[arrow](prod2)--(int1);
\draw[arrow](int1)--(out);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{
calc,
quotes
}
\begin{document}
\tikz{
\coordinate["$A$"] (A) at (2,2);
\coordinate["$B$" below] (B) at (0,0);
\coordinate["$C$" below] (C) at (3,0);
\draw (A) -- (B) -- (C) -- cycle;
\path
let \p1 =($(A)-(B)$), \p2 =($(A)-(C)$),
\n1 = {veclen(\x1,\y1)}, \n2 = {veclen(\x2,\y2)}
in coordinate ["$D$" below] (D) at ($ (B)!scalar(\n1/(\n1+\n2))!(C) $);
\draw (A) -- (D);
}
\end{document}