Function: sum(max(tan(numbers('rep') if numbers('rep') > noise(numbers('rep') if numbers('rep') > numbers("xxr") else numbers('ryy')) else numbers("xxr") if numbers('rep') > numbers('rep') else numbers('ryy')), noise(numbers("xxr") if numbers('ryy') > numbers('rep') else numbers('rep')) if numbers('rep') > numbers("xxr") if numbers('rep') > numbers('rep') else numbers('ryy') else numbers('rep')), tan(noise(numbers('ryy') if numbers('rep') > numbers("xxr") else numbers('rep')) if numbers("xxr") if numbers('rep') > numbers('rep') else numbers('ryy') > numbers('rep') else numbers('rep')))