dot-product-4.tex 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. \documentclass{article}
  2. \usepackage{gensymb}
  3. \usepackage[pdftex,active,tightpage]{preview}
  4. \setlength\PreviewBorder{2mm}
  5. \usepackage{tikz}
  6. \usetikzlibrary{arrows,positioning, calc}
  7. \tikzset{
  8. %Define standard arrow tip
  9. >=stealth',
  10. % Define arrow style
  11. pil/.style={
  12. ->,
  13. thick}
  14. }
  15. \begin{document}
  16. \begin{preview}
  17. \begin{tikzpicture}
  18. \draw[fill=green!30, dotted] (0,0) -- (90:1.00cm) arc (90:25:1.00cm);
  19. \draw[fill=green!30, dotted] (6.8,3) -- (6.8,2) arc (-90:-155:1.00cm);
  20. \draw(6.5,2.5) node {$\scriptstyle \varphi$};
  21. \draw(50:0.6cm) node {$\scriptscriptstyle \varphi = 63 \degree$};
  22. \coordinate[label=left:$\vec F$] (F) at (0cm, 3cm);
  23. \coordinate[label=120:$A$,color=red] (A) at (0cm, 0cm);
  24. \coordinate[label=right:$B$,color=red] (B) at (6.8cm, 3cm);
  25. \draw[->, very thick, color=red] (A) to[] node[above, rotate=27] {$\vec s$} (B);
  26. \draw[pil] (0,0) -- node[near end, right] {$F = 5 \mathrm{N}$} (0, 3cm);
  27. \draw[color=gray, dashed] (0cm,0) -- node {} (6.8cm, 0cm);
  28. \draw[color=gray, dashed] (6.8cm,0) -- node {} (6.8cm, 3cm);
  29. \node (s) at ($(A)!0.5!(B)$) [below,rotate=25] {$s = 3\mathrm{m}$};
  30. \node (txt) at ($(6.8,0)!0.4!(B)$) [below,rotate=90] {$\scriptscriptstyle h = s \cdot \cos(\varphi)$};
  31. \end{tikzpicture}
  32. \end{preview}
  33. \end{document}