Function: invert(mod(numbers("xxr") if round(numbers("xxr"), numbers('xyy')) > abs(numbers("xxr") if numbers('yxr') > round(numbers("xxr"), numbers('xyy')) else numbers('xyy')) else numbers("xxr") if round(numbers("xxr"), numbers('xyy')) > numbers('xyy') else numbers('yxr'), abs(numbers('yxr') if numbers("xxr") > numbers('xyy') else round(numbers("xxr"), numbers('xyy')))))