Solution (source code)

= Solution

For a <smooth curve> $\gamma:[a,b]\to\mathbb C$ and continuous $f$ on its image, the <contour integral> is defined by
$$
\boxed{\int_\gamma f(z)\,dz=\int_a^b f(\gamma(t))\gamma'(t)\,dt.}
$$
The derivative carries the direction and speed of traversal; the complex-valued real-parameter integral is defined by integrating its real and imaginary parts.