Function: square(minus(cos(numbers('xyy') if numbers('rrr') > numbers('rrr') if numbers("yxx") > numbers("yxx") else numbers('xyy') else sum(numbers("yxx") if numbers("yxx") > numbers('xyy') else numbers('rrr'), numbers('rrr'))), numbers('rrr') if numbers('xyy') > numbers("yxx") else numbers("yxx") if numbers('xyy') > sum(numbers('xyy') if numbers("yxx") > numbers('rrr') else numbers("yxx"), numbers('rrr')) else numbers('rrr')))