Function: sum(2 *(invert(divide(tan(numbers('rrr')), numbers('rrr')))) if invert(divide(tan(numbers('rrr')), numbers('rrr'))) > divide(tan(numbers('rrr')), numbers('rrr')) else tan(numbers('rrr')), 2 *(invert(divide(tan(numbers('rrr')), numbers('rrr')))))