Function: min(invert(gradient[2](gradient[0](numbers('rep') if numbers("xxr") > numbers('yyx') else numbers('ryy') if numbers("xxr") > numbers('rep') else numbers('ryy')))), gradient[2](gradient[0](numbers("xxr") if numbers('rep') > numbers('ryy') else numbers('yyx') if numbers('ryy') > numbers("xxr") else numbers('rep'))))