Tan2x formula application