Function: cos(numbers('epe') if mean(numbers('epe'), numbers('xry')) > numbers('xry') else numbers('ryy') if mean(numbers('epe'), numbers('xry')) > numbers('epe') else max(numbers('xry') if numbers('ryy') > numbers('epe') else mean(numbers('epe'), numbers('xry')), mean(numbers('epe'), numbers('xry'))))