Function: 10 *(cos(numbers('rrr') if invert(numbers('rrr') if mean(numbers('rrr'), numbers('yyx')) > numbers("xxr") else numbers('yyx')) > mean(numbers('rrr'), numbers('yyx')) else numbers('yyx') if numbers("xxr") > numbers('rrr') else mean(numbers('rrr'), numbers('yyx'))))