[ca] Improved rule TANT_TAN using min/max