Function: cos(numbers('yyx') if numbers('epe') > numbers("per") else numbers("yxx") if gradient[0](numbers('yyx') if numbers("yxx") > numbers('epe') else numbers("per")) > numbers('epe') else mean(gradient[0](numbers("per") if numbers('epe') > numbers('yyx') else numbers("yxx")), numbers("yxx") if numbers('yyx') > numbers("per") else numbers('epe')))