Advertisement
anden3

Untitled

Jan 17th, 2020
520
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.97 KB | None | 0 0
  1. \begin{figure}[H]%
  2. \centering
  3. \subfloat[Teori]{{
  4.    \begin{tikzpicture}
  5.        \begin{axis}[
  6.            title={\(y = 30 + \frac{-9.82 \cdot t^2}{2}\)},
  7.            xlabel={\(t\)},
  8.            ylabel={\(y\)},
  9.            xmin=0, xmax=3,
  10.            ymin=0, ymax=30,
  11.            width = 0.48\textwidth
  12.        ]
  13.            \addplot [
  14.                blue,
  15.                samples=201
  16.            ] {30 + ((-9.82*x^2) / 2};
  17.        \end{axis}
  18.    \end{tikzpicture}
  19. }}%
  20. \subfloat[Implementation]{{
  21.    \centering
  22.    \begin{tikzpicture}
  23.        \begin{axis}[
  24.            title={Euler-integration},
  25.            xlabel={\(t\)},
  26.            ylabel={\(y\)},
  27.            xmin=0, xmax=3,
  28.            ymin=0, ymax=30,
  29.            width = 0.48\textwidth
  30.        ]
  31.            \addplot [red] table {data/ball_no_damp.txt};
  32.        \end{axis}
  33.    \end{tikzpicture}
  34. }}%
  35. \caption{Höjden av en boll som släpps från 30 meter.}%
  36. \label{fig:ball_height_cmp}%
  37. \end{figure}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement