Function: tan(minus(tan(numbers('rep') if numbers("yyy") > product(numbers('rep'), numbers("yyy")) else numbers('yxy') if numbers('rep') > product(numbers('rep'), numbers("yyy")) else numbers("yyy")), product(numbers('rep'), numbers("yyy")) if numbers("yyy") if numbers('yxy') > numbers('rep') else product(numbers('rep'), numbers("yyy")) > numbers("yyy") else numbers('rep')))