Skip to content

Instantly share code, notes, and snippets.

@heimbrg
Created September 4, 2012 13:58
Show Gist options
  • Save heimbrg/3621397 to your computer and use it in GitHub Desktop.
Save heimbrg/3621397 to your computer and use it in GitHub Desktop.
Latex (tikz) version of Problem M4
\documentclass{article}
\usepackage[latin1]{inputenc}
\usepackage{tikz}
\pagestyle{empty}
\begin{document}
\begin{tikzpicture}
\tikzstyle{every node}=[font=\footnotesize]
\draw[domain=0:2] plot (\x, {-6*(1-\x)*(1-\x)+6});
\draw[domain=0:6] plot (\x, {-1/3*(3-\x)*(3-\x)+3});
\draw[domain=0:8] plot (\x, {-(1/8)*(4-\x)*(4-\x)+2});
\draw (0,0) -- (8,0);
\draw (1,5.9) -- (1,6.1);
\draw (1,6.3) circle (0.2) node {1};
\draw (3,2.9) -- (3,3.1);
\draw (3,3.3) circle (0.2) node {1};
\draw (4,1.9) -- (4,2.1);
\draw (4,2.3) circle (0.2) node {1};
\node at (1.75,4.75) {\textbf{A}};
\node at (4,3) {\textbf{B}};
\node at (6.2,1.75) {\textbf{C}};
\draw (2.25,0.25) circle (0.2) node {2};
\draw (6.25,0.25) circle (0.2) node {2};
\draw (8.25,0.25) circle (0.2) node {2};
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment