Function: invert(minus(numbers("yxx") if numbers("yxx") if numbers('rep') > numbers("xxx") else numbers('rrr') > numbers('rep') else tan(numbers('rrr') if numbers("yxx") > numbers("xxx") else numbers('rep')), tan(numbers('rrr') if numbers("xxx") > numbers("yxx") else numbers('rep'))))