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

# erf(_:)

Returns the error function for each element in a vector.

## Declaration

```swift
func erf(_ x: simd_double4) -> simd_double4
```

## See Also

### Math Functions

- [cbrt(_:)](simd/cbrt(_:)-7pm3s.md)
- [ceil(_:)](simd/ceil(_:)-9s503.md)
- [erfc(_:)](simd/erfc(_:)-6rgzx.md)
- [floor(_:)](simd/floor(_:)-3956i.md)
- [fma(_:_:_:)](simd/fma(_:_:_:)-6mqpv.md)
- [fmod(_:_:)](simd/fmod(_:_:)-92tjw.md)
- [hypot(_:_:)](simd/hypot(_:_:)-2exik.md)
- [lgamma(_:)](simd/lgamma(_:)-2frmv.md)
- [nextafter(_:_:)](simd/nextafter(_:_:)-oxq7.md)
- [pow(_:_:)](simd/pow(_:_:)-3jh7o.md)
- [remainder(_:_:)](simd/remainder(_:_:)-jw8b.md)
- [round(_:)](simd/round(_:)-5ytc6.md)
- [simd_muladd(_:_:_:)](simd/simd_muladd(_:_:_:)-6kpyx.md)
- [tgamma(_:)](simd/tgamma(_:)-2o8vo.md)
- [trunc(_:)](simd/trunc(_:)-9n2h5.md)
