tan2x formula in terms of cos