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