tan2x formula in terms of sin and cos