---
title: "lgamma(_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/lgamma(_:)-1onkc"
---

# lgamma(_:)

Returns the natural logarithm of the absolute value of the gamma function of each element in a vector.

## Declaration

```swift
func lgamma(_ x: simd_float16) -> simd_float16
```

## See Also

### Math Functions

- [cbrt(_:)](simd/cbrt(_:)-3cnri.md)
- [erf(_:)](simd/erf(_:)-7wkg3.md)
- [erfc(_:)](simd/erfc(_:)-20vsh.md)
- [fma(_:_:_:)](simd/fma(_:_:_:)-503dp.md)
- [fmod(_:_:)](simd/fmod(_:_:)-2bys0.md)
- [hypot(_:_:)](simd/hypot(_:_:)-265pt.md)
- [nextafter(_:_:)](simd/nextafter(_:_:)-9kvo8.md)
- [pow(_:_:)](simd/pow(_:_:)-7mpyc.md)
- [remainder(_:_:)](simd/remainder(_:_:)-5dxqm.md)
- [round(_:)](simd/round(_:)-74w3c.md)
- [simd_muladd(_:_:_:)](simd/simd_muladd(_:_:_:)-8imv2.md)
- [tgamma(_:)](simd/tgamma(_:)-9r61k.md)
