Solution (source code)

= Solution

For a <resistor>, <Ohm's law> gives
$$
\boxed{Z_R=R,\qquad I_R(t)=\frac{V_0}{R}\cos\omega t.}
$$
The <electric current> and <voltage> are \b[in phase].