The halftan command rewrites the trigonometric functions in terms of tan(x/2) using the identities:
Examples.