dot-product-3.1.tex 491 B

123456789101112131415161718
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage{gensymb}
  3. \usepackage{tikz}
  4. \usetikzlibrary{arrows,positioning,decorations.pathreplacing,shapes}
  5. \tikzset{
  6. %Define standard arrow tip
  7. >=stealth',
  8. % Define arrow style
  9. pil/.style={->,thick}
  10. }
  11. \begin{document}
  12. \begin{tikzpicture}
  13. \draw[pil] (0,0) -- node[near end, above] {$\vec a$} (3cm, 0cm);
  14. \draw[pil] (0,0.5cm) -- node[near end, above] {$\vec b$} (2cm,0.5cm);
  15. \end{tikzpicture}
  16. \end{document}