Function: invert(numbers('rep') if numbers("yyy") if numbers("per") > numbers('rep') else tan(numbers('rep')) > tan(numbers('rep')) else numbers("yyy") if tan(numbers('rep')) if numbers('rep') > numbers("per") else numbers("yyy") > abs(tan(numbers('rep')) if numbers('rep') > numbers("yyy") else numbers("per") if numbers('rep') > numbers("yyy") else tan(numbers('rep'))) else tan(numbers('rep')))