Function: cos(min(numbers('rrr') if mean(numbers("per"), numbers('rrr')) > numbers('ryy') else numbers("per"), mean(numbers("per"), numbers('rrr'))) if mean(numbers("per"), numbers('rrr')) > max(min(mean(numbers("per"), numbers('rrr')) if numbers('rrr') > numbers("per") else numbers('ryy'), mean(numbers("per"), numbers('rrr'))), numbers('rrr') if numbers("per") > numbers('ryy') else mean(numbers("per"), numbers('rrr'))) else numbers('ryy') if numbers("per") > mean(numbers("per"), numbers('rrr')) else numbers('rrr'))