Function: gradient[1](sum(mod(numbers("per") if numbers("xxx") > numbers("xxr") else numbers('yyx') if numbers("xxr") > numbers("xxx") else numbers("per"), numbers("per") if numbers("xxr") > numbers("xxx") else numbers('yyx')), numbers("xxr") if numbers("xxx") > numbers("per") else numbers('yyx') if numbers("xxx") > numbers("xxr") else numbers("per")))