<filename>figures/RC-circuit.tex
\documentclass[]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[american]{circuitikz}
\usetikzlibrary{arrows,shapes,calc,positioning}

\begin{document}

\pgfmathsetmacro\circuitheight{5}
\pgfmathsetmacro\circuitwidth{5}

\begin{circuitikz}[scale=1]
  \draw (0,0) to[american voltage source, label=5V] (0, \circuitheight) 
  to[R=$R$] ++(\circuitwidth,0);
  \draw (0,0) to (\circuitwidth, 0) to[pC=$C$] (\circuitwidth, \circuitheight);
\end{circuitikz}
\end{document}
