If function is alternating and has two identical inputs then it outputs to 0