Function: cos(numbers('xry') if gradient[2](numbers('xry')) > minus(numbers('xry') if numbers('rrr') > numbers("xxy") else gradient[2](numbers('xry')), gradient[2](numbers('xry'))) else numbers('xry') if numbers("xxy") > gradient[2](numbers('xry')) else numbers('rrr'))