Function: square(gradient[2](minus(round(divide(numbers('rep') if numbers("yxx") > numbers("per") else numbers('xry'), numbers('rep')), numbers("yxx") if numbers('xry') > numbers('rep') else numbers("per")), divide(numbers('rep') if numbers("yxx") > numbers("per") else numbers('xry'), numbers('rep')))))