Transforming tan(x) into sin(x)/cos(x): tan2sincos

### 6.23.14 Transforming tan(x) into sin(x)/cos(x): tan2sincos

The tan2sincos command replaces tan(x) by sin(x)/cos(x) in an expression.

- tan2sincos takes one argument:
  expr, an expression containing trigonometric functions.
- tan2sincos(expr) returns expr with anything of the form tan(x) replaced by sin(x)/cos(x).

Example.
Input:

tan2sincos(tan(2*x))

Output:

sin | ⎛ ⎝ | 2 x | ⎞ ⎠
cos | ⎛ ⎝ | 2 x | ⎞ ⎠