Function: sum(minus(gradient[2](numbers('xyy') if numbers('ryy') > numbers("xxr") else numbers("xxr")) if numbers("xxr") if numbers("xxr") > numbers('xyy') else numbers('ryy') > numbers("xxr") else numbers('ryy'), gradient[2](numbers('ryy') if numbers('xyy') > numbers("xxr") else numbers("xxr"))), numbers("xxr") if gradient[2](numbers('ryy') if numbers("xxr") > numbers("xxr") else numbers('xyy')) > numbers('ryy') else numbers("xxr") if numbers('ryy') > numbers("xxr") else numbers('xyy'))