Function: 2 *(gradient[2](max(numbers('yxr') if numbers("xxr") > numbers("per") else numbers('ryy') if numbers('ryy') > minus(numbers('ryy') if numbers("xxr") > numbers('yxr') else numbers("per"), numbers('ryy')) else numbers('yxr'), minus(numbers("xxr") if numbers("per") > numbers('yxr') else numbers('ryy'), numbers('ryy')))))