Skip to content

Commit

Permalink
add q7 plots generated separetly
Browse files Browse the repository at this point in the history
  • Loading branch information
lgabs committed Nov 16, 2024
1 parent 4f89243 commit 8d114bf
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions exams/ita_2025/physics/essays/solutions/q7_solution.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,53 @@ Os gráficos de \(I_{D1}\) e \(I_{D2}\) em função de \(\phi\) para o intervalo
- \(I_{D1} = I_0 \cos^2\left( \dfrac{\phi}{2} \right)\)
- \(I_{D2} = I_0 \sin^2\left( \dfrac{\phi}{2} \right)\)

Plots for these equations:\footnote{o1-preview did not produced the plots when solution was generated. However, asking the model separately to produce the plots from equations above worked, and we included for educational purposes and to also show its capabilities for building plots with tikz.}

\begin{center}
\begin{tikzpicture}
\tikzmath{
real \Izero;
\Izero = 1; % Set the value of I0
}
\begin{axis}[
title={Plot of $I_{D1} = I_0 \cos^2\left( \dfrac{\phi}{2} \right)$},
xlabel={$\phi$ (radians)},
ylabel={$I_{D1}$},
domain=0:2*pi,
samples=200,
grid=both,
minor tick num=1,
width=12cm,
height=7cm,
]
\addplot[blue, thick] {\Izero * cos(deg(x/2))^2};
\end{axis}
\end{tikzpicture}
\end{center}

\bigskip % Adds some vertical space between the plots

\begin{center}
\begin{tikzpicture}
\tikzmath{
real \Izero;
\Izero = 1; % Set the value of I0
}
\begin{axis}[
title={Plot of $I_{D2} = I_0 \sin^2\left( \dfrac{\phi}{2} \right)$},
xlabel={$\phi$ (radians)},
ylabel={$I_{D2}$},
domain=0:2*pi,
samples=200,
grid=both,
minor tick num=1,
width=12cm,
height=7cm,
]
\addplot[red, thick] {\Izero * sin(deg(x/2))^2};
\end{axis}
\end{tikzpicture}
\end{center}

---

Expand Down

0 comments on commit 8d114bf

Please sign in to comment.