Function: cos(divide(mean(gradient[1](numbers("yxx") if numbers("xxr") > numbers("yxx") else numbers('rep')), numbers('rep') if numbers("xxr") > numbers("yxx") else numbers("yxx")), gradient[1](numbers("yxx") if numbers("yxx") > numbers('rep') else numbers("xxr"))))