0

enter image description here

Hi i was wondering how to draw this diagram in latex.

Thanks so much.

raz999
  • 13
  • 1
    You could have a look at the tikz package. – DLichti May 19 '19 at 11:43
  • \documentclass[tikz,border=3.14mm]{standalone} \begin{document} \begin{tikzpicture} \draw[->] (0,0) -- (5,0); \foreach \X in {0,...,3} {\draw[thick,-latex] (\X,-0.1) node[below]{$\X$} -- ++(0,0.6) node[above]{$1$};} \draw[thick,-latex] (4.6,-0.1) node[below]{$n$} -- ++(0,0.6) node[above]{$1$}; \node at (3.8,0.4) {$\cdots$}; \end{tikzpicture} \end{document} –  May 19 '19 at 12:13

1 Answers1

4

As DLichti is saying you could use TikZ.

\documentclass[tikz,border=3.14mm]{standalone}
\begin{document}
\begin{tikzpicture}
 \draw[->] (0,0) -- (5.4,0);
 \foreach \X in {0,...,3}
  {\draw[thick,-latex] (\X,-0.1) node[below]{$\X$} -- ++(0,0.6) node[above]{$1$};}
 \draw[thick,-latex] (4.6,-0.1) node[below]{$n-1$} -- ++(0,0.6) node[above]{$1$};
 \node at (3.8,0.4) {$\cdots$};
\end{tikzpicture}
\end{document}

enter image description here