re-implementation complex transcendental functions