Function: invert(mod(numbers("xxx"), numbers('yyx')) if numbers('yyx') > numbers("per") if numbers('yyx') > numbers("xxx") else mod(numbers("xxx"), numbers('yyx')) else numbers("xxx")) if numbers('yyx') if numbers("xxx") if numbers('yyx') > mod(numbers("xxx"), numbers('yyx')) else numbers("per") > numbers("xxx") else mod(numbers("xxx"), numbers('yyx')) > numbers('yyx') if numbers("xxx") > numbers("per") else mod(numbers("xxx"), numbers('yyx')) else mod(numbers("xxx"), numbers('yyx'))