public static function tanh($z) {
        if (!($z instanceof Complex)) $z = static::parse($z);

        $d = sinh($z->x)*sinh($z->x) + cos($z->y)*cos($z->y);
        return static::create(sinh($z->x)*cosh($z->x)/$d, sin($z->y)*cos($z->y)/$d);