Function: minus(product(numbers("per") if numbers('ryy') > numbers("xyx") else sqrt(numbers("per")), sqrt(numbers("per"))), sqrt(numbers("per")) if numbers("xyx") > numbers("per") else numbers('ryy')) if sqrt(numbers("per")) > product(sqrt(numbers("per")) if numbers("xyx") > numbers("per") else numbers('ryy'), sqrt(numbers("per"))) else numbers("xyx") if numbers("per") > numbers('ryy') else sqrt(numbers("per"))