dot-product-3-1.tex 627 B

123456789101112131415161718192021222324
  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. \tikzset{
  14. %Define standard arrow tip
  15. >=stealth',
  16. % Define arrow style
  17. pil/.style={->,thick}
  18. }
  19. \draw[pil] (0,0) -- node[near end, above] {$\vec a$} (3cm, 0cm);
  20. \draw[pil] (0,0.5cm) -- node[near end, above] {$\vec b$} (2cm,0.5cm);
  21. \end{tikzpicture}
  22. \end{document}