refactor complex exp and expm1