User Guide
Calculate (-1)^n for an integer n and raise an error if n is not an integer.
int
n (float)