evaluating for secant using even and odd