Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \begin{figure}[H]%
- \centering
- \subfloat[Teori]{{
- \begin{tikzpicture}
- \begin{axis}[
- title={\(y = 30 + \frac{-9.82 \cdot t^2}{2}\)},
- xlabel={\(t\)},
- ylabel={\(y\)},
- xmin=0, xmax=3,
- ymin=0, ymax=30,
- width = 0.48\textwidth
- ]
- \addplot [
- blue,
- samples=201
- ] {30 + ((-9.82*x^2) / 2};
- \end{axis}
- \end{tikzpicture}
- }}%
- \subfloat[Implementation]{{
- \centering
- \begin{tikzpicture}
- \begin{axis}[
- title={Euler-integration},
- xlabel={\(t\)},
- ylabel={\(y\)},
- xmin=0, xmax=3,
- ymin=0, ymax=30,
- width = 0.48\textwidth
- ]
- \addplot [red] table {data/ball_no_damp.txt};
- \end{axis}
- \end{tikzpicture}
- }}%
- \caption{Höjden av en boll som släpps från 30 meter.}%
- \label{fig:ball_height_cmp}%
- \end{figure}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement