add exact value check for tan zero crossings