Function: gradient[2](cos(numbers("yyy"))) if invert(gradient[2](cos(numbers("yyy"))) if numbers("yxx") > cos(numbers("yyy")) else numbers("yyy")) > cos(numbers("yyy")) else numbers("yyy") if cos(numbers("yyy")) > gradient[2](cos(numbers("yyy"))) else numbers("yxx")