---
title: "tanh(_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/tanh(_:)-739hq"
---

# tanh(_:)

Returns the hyperbolic tangent of each element in a vector.

## Declaration

```swift
func tanh(_ x: simd_double2) -> simd_double2
```

## See Also

### Hyperbolic Functions

- [acosh(_:)](simd/acosh(_:)-edu.md)
- [asinh(_:)](simd/asinh(_:)-nxaa.md)
- [atanh(_:)](simd/atanh(_:)-5l8ss.md)
- [cosh(_:)](simd/cosh(_:)-303ot.md)
- [sinh(_:)](simd/sinh(_:)-5gx9h.md)
