The sincos command uses the identity
to rewrite complex exponentials in terms of sine and cosine. exp2trig is a synonym for sincos.
Examples.