Function: logn(sum(minus(sqrt(numbers("xxr")) if numbers('ryy') > numbers("xxr") else numbers("per") if sqrt(numbers("xxr")) > numbers('ryy') else numbers("xxr"), numbers('ryy') if numbers("xxr") > numbers("per") else sqrt(numbers("xxr"))), numbers('ryy') if numbers("xxr") > sqrt(numbers("xxr")) else numbers("per") if numbers('ryy') > sqrt(numbers("xxr")) else numbers("xxr")))