3821: simplify trig to exp and vice versa

recognizing I*tan(x) and tanh(x) will take a little more work