Fix evaluation of reciprocal trigonometric functions in even quadrants

fixes #8421
Merge pull request #8422 from skirpichev/8421-fix

Fix evaluation of reciprocal trigonometric functions in even quadrants