Function: sum(sqrt(minus(divide(gradient[1](numbers("xyx") if numbers("xxy") > numbers("xxr") else numbers('yxy')), numbers("xxr") if numbers("xyx") > numbers('yxy') else numbers("xxy")), gradient[1](numbers("xxr") if numbers("xxy") > numbers('yxy') else numbers("xyx")))), minus(divide(gradient[1](numbers("xyx") if numbers("xxy") > numbers('yxy') else numbers("xxr")), numbers('yxy') if numbers("xyx") > numbers("xxy") else numbers("xxr")), gradient[1](numbers("xxr") if numbers("xyx") > numbers('yxy') else numbers("xxy"))))