Function: min(invert(cos(numbers('rep') if numbers("xxy") if numbers('rep') > numbers('rrr') else numbers('rep') > numbers("xxy") else numbers('rrr'))), cos(numbers('rep') if numbers('rrr') > numbers("xxy") if numbers('rep') > numbers('rep') else numbers('rrr') else numbers("xxy")))