Genus of a smooth plane curve (source code)

= Genus of a smooth plane curve

A smooth plane curve of degree $d$ has genus
$$
g=\frac{(d-1)(d-2)}2.
$$