Implement cmath.{tan,tanh}