Function: invert(numbers("xxr") if cos(divide(numbers("xxr"), numbers('xyy')) if numbers("xxr") > numbers('xyy') else numbers('xyy')) > numbers("xxr") if numbers('xyy') > numbers('xyy') else divide(numbers("xxr"), numbers('xyy')) else divide(numbers("xxr"), numbers('xyy')))