The carg functions compute the argument (also called phase angle) of z, with a branch cut along the negative real axis.